From 505761b5a3f3e34e3b0e7c8b9b0198c8572f7b9d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 13 Dec 2011 16:59:55 +0100 Subject: [PATCH] s3: Pass messaging_context to nmbd/process() --- source3/nmbd/nmbd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 63a5681e9d3..8c41ebbde6e 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -459,7 +459,7 @@ static void msg_nmbd_send_packet(struct messaging_context *msg, The main select loop. **************************************************************************** */ -static void process(void) +static void process(struct messaging_context *msg) { bool run_election; @@ -480,8 +480,7 @@ static void process(void) * (nmbd_packets.c) */ - if (listen_for_packets(nmbd_messaging_context(), - run_election)) { + if (listen_for_packets(msg, run_election)) { TALLOC_FREE(frame); return; } @@ -1013,7 +1012,7 @@ static bool open_sockets(bool isdaemon, int port) } TALLOC_FREE(frame); - process(); + process(nmbd_messaging_context()); kill_async_dns_child(); return(0); -- 2.34.1