smbd: remove unused tevent_context argument from notify_init
authorStefan Metzmacher <metze@samba.org>
Thu, 24 May 2018 05:18:10 +0000 (07:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:18 +0000 (08:59 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/notify.c
source3/smbd/notify_msg.c
source3/smbd/proto.h
source3/smbd/service.c
source3/utils/status.c

index add59089187e0eb1984c46a718dbbbb5e75714f9..44c0b09432e7b201312e5db9c17cdbf38d8f4c28 100644 (file)
@@ -539,7 +539,7 @@ void smbd_notifyd_restarted(struct messaging_context *msg,
 
        TALLOC_FREE(sconn->notify_ctx);
 
-       sconn->notify_ctx = notify_init(sconn, sconn->msg_ctx, sconn->ev_ctx,
+       sconn->notify_ctx = notify_init(sconn, sconn->msg_ctx,
                                        sconn, notify_callback);
        if (sconn->notify_ctx == NULL) {
                DBG_DEBUG("notify_init failed\n");
index 3787df74bfd0b67a74f6a8a024b63430d90739de..ff38b964914f7ccee75c0328ded7a4fc4851552c 100644 (file)
@@ -48,7 +48,6 @@ static int notify_context_destructor(struct notify_context *ctx);
 
 struct notify_context *notify_init(
        TALLOC_CTX *mem_ctx, struct messaging_context *msg,
-       struct tevent_context *ev,
        struct smbd_server_connection *sconn,
        void (*callback)(struct smbd_server_connection *sconn,
                         void *, struct timespec,
index f9f29230162c55ce34f8d3a5c955f896b16c2a8d..ab4a8d68d3f1e7122f8a5959160d1ac4419c54c5 100644 (file)
@@ -586,7 +586,6 @@ int fam_watch(TALLOC_CTX *mem_ctx,
 
 struct notify_context *notify_init(
        TALLOC_CTX *mem_ctx, struct messaging_context *msg,
-       struct tevent_context *ev,
        struct smbd_server_connection *sconn,
        void (*callback)(struct smbd_server_connection *sconn,
                         void *, struct timespec,
index a22a0270cd79b4be4f809d91b83b84bc659d8286..a928de6c78f02474fd7d8a61d85cdc6763a305c0 100644 (file)
@@ -458,7 +458,7 @@ static NTSTATUS notify_init_sconn(struct smbd_server_connection *sconn)
                return NT_STATUS_OK;
        }
 
-       sconn->notify_ctx = notify_init(sconn, sconn->msg_ctx, sconn->ev_ctx,
+       sconn->notify_ctx = notify_init(sconn, sconn->msg_ctx,
                                        sconn, notify_callback);
        if (sconn->notify_ctx == NULL) {
                return NT_STATUS_NO_MEMORY;
index 6370f7002e8b80b61b6b7f4281b8e64445fe421e..d04efedee3f6e5f36fa0735f82d3dff021f3a852 100644 (file)
@@ -735,7 +735,6 @@ int main(int argc, const char *argv[])
                struct notify_context *n;
 
                n = notify_init(talloc_tos(), msg_ctx,
-                               messaging_tevent_context(msg_ctx),
                                NULL, NULL);
                if (n == NULL) {
                        goto done;