update the example for the new signature of
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 18 Aug 2010 00:18:35 +0000 (10:18 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 18 Aug 2010 00:18:35 +0000 (10:18 +1000)
ctdb_set_message_handler_send()

libctdb/tst.c

index 9f67b629211a147a990a661187771862c74caa6f..8bf5e63fae0b13db68137eaa7ac5c60cf0063f3c 100644 (file)
@@ -147,7 +147,8 @@ int main(int argc, char *argv[])
 
        pfd.fd = ctdb_get_fd(ctdb_connection);
 
-       handle = ctdb_set_message_handler_send(ctdb_connection, 55, msg_h,
+       handle = ctdb_set_message_handler_send(ctdb_connection, 55,
+                                              msg_h, NULL,
                                               message_handler_cb, NULL);
        if (handle == NULL) {
                printf("Failed to register message port\n");