s3: Pass messaging_context to nmbd/process()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Dec 2011 15:59:55 +0000 (16:59 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 14 Dec 2011 16:34:21 +0000 (17:34 +0100)
source3/nmbd/nmbd.c

index 63a5681e9d3db9a24f0e6a7457d5144102e3a0f9..8c41ebbde6e9e34518e458217c35014fafa4610f 100644 (file)
@@ -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);