messaging: Make messaging_dgm_register_tevent_context return a tevent_fd
authorVolker Lendecke <vl@samba.org>
Fri, 30 Sep 2016 13:42:40 +0000 (06:42 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 22:06:23 +0000 (00:06 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/messages_dgm.c
source3/lib/messages_dgm.h
source3/lib/messages_dgm_ref.c

index 8c632b984c57f3c1f68d28081fc1ef7879a8b2a7..1e018174ff13cef4c5a98f3bbea76deb24ff3e2b 100644 (file)
@@ -1359,8 +1359,8 @@ int messaging_dgm_wipe(void)
        return 0;
 }
 
-void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,
-                                           struct tevent_context *ev)
+struct tevent_fd *messaging_dgm_register_tevent_context(
+       TALLOC_CTX *mem_ctx, struct tevent_context *ev)
 {
        struct messaging_dgm_context *ctx = global_dgm_context;
 
index 7695a92591713a703a38cb84281e58b110088022..3d450a186fd93c6ac01a8c9ccaf6156f7e07bd14 100644 (file)
@@ -42,7 +42,7 @@ int messaging_dgm_send(pid_t pid,
                       const int *fds, size_t num_fds);
 int messaging_dgm_cleanup(pid_t pid);
 int messaging_dgm_wipe(void);
-void *messaging_dgm_register_tevent_context(TALLOC_CTX *mem_ctx,
-                                           struct tevent_context *ev);
+struct tevent_fd *messaging_dgm_register_tevent_context(
+       TALLOC_CTX *mem_ctx, struct tevent_context *ev);
 
 #endif
index 00a3a66941c9d204be829a50bf0d4bab1864fa12..f582750d5f25b1b9962e7cb1e02749c40e86ed4d 100644 (file)
@@ -26,7 +26,7 @@
 
 struct msg_dgm_ref {
        struct msg_dgm_ref *prev, *next;
-       void *tevent_handle;
+       struct tevent_fd *tevent_handle;
        void (*recv_cb)(struct tevent_context *ev,
                        const uint8_t *msg, size_t msg_len,
                        int *fds, size_t num_fds, void *private_data);