mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +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:
parent
d2adcebda1
commit
934b375639
@ -539,7 +539,7 @@ void smbd_notifyd_restarted(struct messaging_context *msg,
|
|||||||
|
|
||||||
TALLOC_FREE(sconn->notify_ctx);
|
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);
|
sconn, notify_callback);
|
||||||
if (sconn->notify_ctx == NULL) {
|
if (sconn->notify_ctx == NULL) {
|
||||||
DBG_DEBUG("notify_init failed\n");
|
DBG_DEBUG("notify_init failed\n");
|
||||||
|
@ -48,7 +48,6 @@ static int notify_context_destructor(struct notify_context *ctx);
|
|||||||
|
|
||||||
struct notify_context *notify_init(
|
struct notify_context *notify_init(
|
||||||
TALLOC_CTX *mem_ctx, struct messaging_context *msg,
|
TALLOC_CTX *mem_ctx, struct messaging_context *msg,
|
||||||
struct tevent_context *ev,
|
|
||||||
struct smbd_server_connection *sconn,
|
struct smbd_server_connection *sconn,
|
||||||
void (*callback)(struct smbd_server_connection *sconn,
|
void (*callback)(struct smbd_server_connection *sconn,
|
||||||
void *, struct timespec,
|
void *, struct timespec,
|
||||||
|
@ -586,7 +586,6 @@ int fam_watch(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
struct notify_context *notify_init(
|
struct notify_context *notify_init(
|
||||||
TALLOC_CTX *mem_ctx, struct messaging_context *msg,
|
TALLOC_CTX *mem_ctx, struct messaging_context *msg,
|
||||||
struct tevent_context *ev,
|
|
||||||
struct smbd_server_connection *sconn,
|
struct smbd_server_connection *sconn,
|
||||||
void (*callback)(struct smbd_server_connection *sconn,
|
void (*callback)(struct smbd_server_connection *sconn,
|
||||||
void *, struct timespec,
|
void *, struct timespec,
|
||||||
|
@ -458,7 +458,7 @@ static NTSTATUS notify_init_sconn(struct smbd_server_connection *sconn)
|
|||||||
return NT_STATUS_OK;
|
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);
|
sconn, notify_callback);
|
||||||
if (sconn->notify_ctx == NULL) {
|
if (sconn->notify_ctx == NULL) {
|
||||||
return NT_STATUS_NO_MEMORY;
|
return NT_STATUS_NO_MEMORY;
|
||||||
|
@ -735,7 +735,6 @@ int main(int argc, const char *argv[])
|
|||||||
struct notify_context *n;
|
struct notify_context *n;
|
||||||
|
|
||||||
n = notify_init(talloc_tos(), msg_ctx,
|
n = notify_init(talloc_tos(), msg_ctx,
|
||||||
messaging_tevent_context(msg_ctx),
|
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
if (n == NULL) {
|
if (n == NULL) {
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user