summaryrefslogtreecommitdiff
path: root/source3/smbd/notify_internal.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-14 10:31:13 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-15 11:00:24 +0100
commit81ec0cc602141553045b39f54b23c40f4f668d4c (patch)
treee2e0316c396497a8692237685a46b40251c31170 /source3/smbd/notify_internal.c
parent157a6916a9cccb7e43137687ec55655e954d8ab8 (diff)
downloadsamba-81ec0cc602141553045b39f54b23c40f4f668d4c.tar.gz
samba-81ec0cc602141553045b39f54b23c40f4f668d4c.tar.bz2
samba-81ec0cc602141553045b39f54b23c40f4f668d4c.zip
s3: Remove the separate server_id arg to notify_init
The server_id is tied to the messaging_context Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd/notify_internal.c')
-rw-r--r--source3/smbd/notify_internal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index b01b10dd1c..4dbb331b50 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -84,7 +84,7 @@ static int notify_destructor(struct notify_context *notify)
talloc_free(). We need the messaging_ctx to allow for notifications
via internal messages
*/
-struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server,
+struct notify_context *notify_init(TALLOC_CTX *mem_ctx,
struct messaging_context *messaging_ctx,
struct event_context *ev,
connection_struct *conn)
@@ -118,7 +118,7 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server,
return NULL;
}
- notify->server = server;
+ notify->server = messaging_server_id(messaging_ctx);
notify->messaging_ctx = messaging_ctx;
notify->list = NULL;
notify->array = NULL;