git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
096ede3
)
s3: Pass messaging_context to nmbd/process()
author
Volker Lendecke
<vl@samba.org>
Tue, 13 Dec 2011 15:59:55 +0000
(16:59 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 14 Dec 2011 16:34:21 +0000
(17:34 +0100)
source3/nmbd/nmbd.c
patch
|
blob
|
history
diff --git
a/source3/nmbd/nmbd.c
b/source3/nmbd/nmbd.c
index 63a5681e9d3db9a24f0e6a7457d5144102e3a0f9..8c41ebbde6e9e34518e458217c35014fafa4610f 100644
(file)
--- 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.
**************************************************************************** */
The main select loop.
**************************************************************************** */
-static void process(
void
)
+static void process(
struct messaging_context *msg
)
{
bool run_election;
{
bool run_election;
@@
-480,8
+480,7
@@
static void process(void)
* (nmbd_packets.c)
*/
* (nmbd_packets.c)
*/
- if (listen_for_packets(nmbd_messaging_context(),
- run_election)) {
+ if (listen_for_packets(msg, run_election)) {
TALLOC_FREE(frame);
return;
}
TALLOC_FREE(frame);
return;
}
@@
-1013,7
+1012,7
@@
static bool open_sockets(bool isdaemon, int port)
}
TALLOC_FREE(frame);
}
TALLOC_FREE(frame);
- process();
+ process(
nmbd_messaging_context()
);
kill_async_dns_child();
return(0);
kill_async_dns_child();
return(0);