dont try starting samba through the "init" event
[sahlberg/ctdb.git] / common / ctdb_message.c
index 41eae517eb17d493d01cd0ce8114344edd7349bd..03a4b55389c01ae6f9068e9673f233c6706593c6 100644 (file)
@@ -21,7 +21,7 @@
   protocol design and packet details
 */
 #include "includes.h"
-#include "lib/events/events.h"
+#include "lib/tevent/tevent.h"
 #include "lib/tdb/include/tdb.h"
 #include "system/network.h"
 #include "system/filesys.h"
@@ -74,7 +74,7 @@ static int message_handler_destructor(struct ctdb_message_list *m)
 int ctdb_register_message_handler(struct ctdb_context *ctdb, 
                                  TALLOC_CTX *mem_ctx,
                                  uint64_t srvid,
-                                 ctdb_message_fn_t handler,
+                                 ctdb_msg_fn_t handler,
                                  void *private_data)
 {
        struct ctdb_message_list *m;