summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-12-13 16:59:55 +0100
committerVolker Lendecke <vl@samba.org>2011-12-14 17:34:21 +0100
commit505761b5a3f3e34e3b0e7c8b9b0198c8572f7b9d (patch)
tree5c387a2432178b0dfd6aea0f43cf330296440988
parent096ede362370b7e55a77cedfa40efc2a8a03fc17 (diff)
downloadsamba-505761b5a3f3e34e3b0e7c8b9b0198c8572f7b9d.tar.gz
samba-505761b5a3f3e34e3b0e7c8b9b0198c8572f7b9d.tar.bz2
samba-505761b5a3f3e34e3b0e7c8b9b0198c8572f7b9d.zip
s3: Pass messaging_context to nmbd/process()
-rw-r--r--source3/nmbd/nmbd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 63a5681e9d..8c41ebbde6 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);