1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

smbd: remove unused tevent_context argument from notify_init

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2018-05-24 07:18:10 +02:00
parent d2adcebda1
commit 934b375639
5 changed files with 2 additions and 5 deletions

View 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");

View 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,

View 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,

View 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;

View 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;