diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-08-11 02:30:35 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-08-11 02:30:35 +0000 |
commit | dd5615c04241ec09e6b877a0670a957fa7702902 (patch) | |
tree | 62e27b18cd3e3bd717abbd4b2b1eb857b33544af /source3/smbd/connection.c | |
parent | 6ddba1e99b48afc53cf5bc7a2900279490c7a8f6 (diff) | |
download | samba-dd5615c04241ec09e6b877a0670a957fa7702902.tar.gz samba-dd5615c04241ec09e6b877a0670a957fa7702902.tar.bz2 samba-dd5615c04241ec09e6b877a0670a957fa7702902.zip |
Make 'remote_machine' private to lib/substitute.c, and fix all the user to use
the new accessor functions.
Andrew Bartlett
(This used to be commit f393de2310e997d05674eb7f1268655373e03647)
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r-- | source3/smbd/connection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index b53ef9fb3f..5609c2963d 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -20,7 +20,6 @@ #include "includes.h" -extern fstring remote_machine; static TDB_CONTEXT *tdb; /**************************************************************************** @@ -178,7 +177,7 @@ BOOL claim_connection(connection_struct *conn,char *name,int max_connections,BOO } crec.start = time(NULL); - StrnCpy(crec.machine,remote_machine,sizeof(crec.machine)-1); + StrnCpy(crec.machine,get_remote_machine_name(),sizeof(crec.machine)-1); StrnCpy(crec.addr,conn?conn->client_address:client_addr(),sizeof(crec.addr)-1); dbuf.dptr = (char *)&crec; |