]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
cleanup invoke_control_callback. we dont need to pass some of these
authorRonnie Sahlberg <sahlberg@ronnie>
Fri, 24 Aug 2007 00:54:34 +0000 (10:54 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Fri, 24 Aug 2007 00:54:34 +0000 (10:54 +1000)
parameters to _recv() since they are already set

(This used to be ctdb commit 2034dbebb26d7a2d51241943f6ccbe15bb6a5169)

ctdb/client/ctdb_client.c

index ecbe57e342b20ff18f802aa0ae22905a632a1541..a3203c21e969d9386e882ee8106b2ede5677e79a 100644 (file)
@@ -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);
 }