summaryrefslogtreecommitdiffstats
path: root/ctdb/client
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-08-24 10:54:34 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-08-24 10:54:34 +1000
commitde23937368088327059214f72f083f896f4e1fed (patch)
tree43a21491fda8c23b8135b8a57bfce322c0279c06 /ctdb/client
parent495a6403da4de32c382d885dcc88ea4979942c0b (diff)
downloadsamba-de23937368088327059214f72f083f896f4e1fed.tar.gz
samba-de23937368088327059214f72f083f896f4e1fed.tar.xz
samba-de23937368088327059214f72f083f896f4e1fed.zip
cleanup invoke_control_callback. we dont need to pass some of these
parameters to _recv() since they are already set (This used to be ctdb commit 2034dbebb26d7a2d51241943f6ccbe15bb6a5169)
Diffstat (limited to 'ctdb/client')
-rw-r--r--ctdb/client/ctdb_client.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c
index ecbe57e342..a3203c21e9 100644
--- a/ctdb/client/ctdb_client.c
+++ b/ctdb/client/ctdb_client.c
@@ -674,19 +674,16 @@ static void invoke_control_callback(struct event_context *ev, struct timed_event
struct timeval t, void *private_data)
{
struct ctdb_client_control_state *state;
- struct ctdb_context *ctdb;
TALLOC_CTX *tmp_ctx = talloc_new(NULL);
int ret;
state = talloc_get_type(private_data, struct ctdb_client_control_state);
talloc_steal(tmp_ctx, state);
- ctdb = state->ctdb;
-
- ret = ctdb_control_recv(ctdb, state, state,
- &state->outdata,
- &state->status,
- &state->errormsg);
+ ret = ctdb_control_recv(state->ctdb, state, state,
+ NULL,
+ NULL,
+ NULL);
talloc_free(tmp_ctx);
}