diff options
author | Andreas Schneider <asn@samba.org> | 2010-05-31 18:33:38 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-06-04 12:12:08 -0400 |
commit | fad86ddf5531c8f5862b697e99c24a7bd526d73e (patch) | |
tree | f2dc528dd5b8753cd1a8b796a873616a1027e305 /source3/smbd | |
parent | 09daf63c9332d0314dee6c7a46b95aacb470940b (diff) | |
download | samba-fad86ddf5531c8f5862b697e99c24a7bd526d73e.tar.gz samba-fad86ddf5531c8f5862b697e99c24a7bd526d73e.tar.bz2 samba-fad86ddf5531c8f5862b697e99c24a7bd526d73e.zip |
s3-smbd: Remove unneeded dependency of map_username to globals.c.
Reviewed-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/globals.c | 3 | ||||
-rw-r--r-- | source3/smbd/globals.h | 3 | ||||
-rw-r--r-- | source3/smbd/map_username.c | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c index 892bc89d08..30a306efbb 100644 --- a/source3/smbd/globals.c +++ b/source3/smbd/globals.c @@ -67,9 +67,6 @@ unsigned char char_flags[256]; unsigned mangle_prefix = 0; unsigned char base_reverse[256]; -char *last_from = NULL; -char *last_to = NULL; - struct msg_state *smbd_msg_state = NULL; bool logged_ioctl_message = false; diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 36661482ce..9df255475e 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -64,9 +64,6 @@ extern unsigned char char_flags[256]; extern unsigned mangle_prefix; extern unsigned char base_reverse[256]; -extern char *last_from; -extern char *last_to; - struct msg_state; extern struct msg_state *smbd_msg_state; diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c index 9b24d8fa4e..3b3a6b13a4 100644 --- a/source3/smbd/map_username.c +++ b/source3/smbd/map_username.c @@ -20,7 +20,6 @@ */ #include "includes.h" -#include "smbd/globals.h" /******************************************************************* Map a username from a dos name to a unix name by looking in the username @@ -33,6 +32,9 @@ Returns True if username was changed, false otherwise. ********************************************************************/ +static char *last_from = NULL; +static char *last_to = NULL; + static const char *get_last_from(void) { if (!last_from) { |