diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-14 13:26:36 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-15 14:24:59 +0100 |
commit | 19078b9b0564ed2654a1dae1d23488f89aadb41f (patch) | |
tree | 1caa830126daf4a6d6a70dbcd631d1fbbdf4db80 /source3/smbd | |
parent | 03455519e70253cb86007ac5a8960999e9aa5fa4 (diff) | |
download | samba-19078b9b0564ed2654a1dae1d23488f89aadb41f.tar.gz samba-19078b9b0564ed2654a1dae1d23488f89aadb41f.tar.bz2 samba-19078b9b0564ed2654a1dae1d23488f89aadb41f.zip |
s3:smbd/globals: remove unused msg_ctx_to_sconn()
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 15 14:24:59 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/globals.c | 13 | ||||
-rw-r--r-- | source3/smbd/globals.h | 2 |
2 files changed, 0 insertions, 15 deletions
diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c index 3199a37c90..ff8c51bbdf 100644 --- a/source3/smbd/globals.c +++ b/source3/smbd/globals.c @@ -104,19 +104,6 @@ bool exit_firsttime = true; struct smbd_server_connection *smbd_server_conn = NULL; -struct smbd_server_connection *msg_ctx_to_sconn(struct messaging_context *msg_ctx) -{ - struct server_id my_id, msg_id; - - my_id = messaging_server_id(smbd_server_conn->msg_ctx); - msg_id = messaging_server_id(msg_ctx); - - if (!procid_equal(&my_id, &msg_id)) { - return NULL; - } - return smbd_server_conn; -} - struct memcache *smbd_memcache(void) { if (!smbd_memcache_ctx) { diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index d5b2de76eb..3c6aa12f1b 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -614,6 +614,4 @@ struct smbd_server_connection { extern struct smbd_server_connection *smbd_server_conn; -struct smbd_server_connection *msg_ctx_to_sconn(struct messaging_context *msg_ctx); - void smbd_init_globals(void); |