diff options
Diffstat (limited to 'source3')
-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) { |