git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37d71a5
)
s3: Remove some smbd_messaging_context references from smbd_process
author
Volker Lendecke
<vl@samba.org>
Sun, 8 Aug 2010 16:48:01 +0000
(18:48 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 8 Aug 2010 21:37:47 +0000
(23:37 +0200)
source3/smbd/process.c
patch
|
blob
|
history
diff --git
a/source3/smbd/process.c
b/source3/smbd/process.c
index c57d580e13f09ebadc6375971cf92c4b7f2c5ee2..afc30face882522d5b109461a5d57b6b541360af 100644
(file)
--- a/
source3/smbd/process.c
+++ b/
source3/smbd/process.c
@@
-3008,24
+3008,24
@@
void smbd_process(struct smbd_server_connection *sconn)
}
/* Setup oplocks */
}
/* Setup oplocks */
- if (!init_oplocks(s
mbd_messaging_context()
))
+ if (!init_oplocks(s
conn->msg_ctx
))
exit_server("Failed to init oplocks");
/* register our message handlers */
exit_server("Failed to init oplocks");
/* register our message handlers */
- messaging_register(s
mbd_messaging_context()
, NULL,
+ messaging_register(s
conn->msg_ctx
, NULL,
MSG_SMB_FORCE_TDIS, msg_force_tdis);
MSG_SMB_FORCE_TDIS, msg_force_tdis);
- messaging_register(s
mbd_messaging_context()
, NULL,
+ messaging_register(s
conn->msg_ctx
, NULL,
MSG_SMB_RELEASE_IP, msg_release_ip);
MSG_SMB_RELEASE_IP, msg_release_ip);
- messaging_register(s
mbd_messaging_context()
, NULL,
+ messaging_register(s
conn->msg_ctx
, NULL,
MSG_SMB_CLOSE_FILE, msg_close_file);
/*
* Use the default MSG_DEBUG handler to avoid rebroadcasting
* MSGs to all child processes
*/
MSG_SMB_CLOSE_FILE, msg_close_file);
/*
* Use the default MSG_DEBUG handler to avoid rebroadcasting
* MSGs to all child processes
*/
- messaging_deregister(s
mbd_messaging_context()
,
+ messaging_deregister(s
conn->msg_ctx
,
MSG_DEBUG, NULL);
MSG_DEBUG, NULL);
- messaging_register(s
mbd_messaging_context()
, NULL,
+ messaging_register(s
conn->msg_ctx
, NULL,
MSG_DEBUG, debug_message);
if ((lp_keepalive() != 0)
MSG_DEBUG, debug_message);
if ((lp_keepalive() != 0)
@@
-3047,7
+3047,7
@@
void smbd_process(struct smbd_server_connection *sconn)
if (!(event_add_idle(smbd_event_context(), NULL,
timeval_set(SMBD_SELECT_TIMEOUT, 0),
"housekeeping", housekeeping_fn,
if (!(event_add_idle(smbd_event_context(), NULL,
timeval_set(SMBD_SELECT_TIMEOUT, 0),
"housekeeping", housekeeping_fn,
- s
mbd_messaging_context()
))) {
+ s
conn->msg_ctx
))) {
DEBUG(0, ("Could not add housekeeping event\n"));
exit(1);
}
DEBUG(0, ("Could not add housekeeping event\n"));
exit(1);
}