summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-08 23:39:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-08 23:39:44 +0000
commit8ccff3e99527b7303e75f860e50d74bb83fdfb15 (patch)
tree3f1ee7343d0e0417ff62fb664c7809f743aab6fd
parentbebdbcd248ccb3021d0b94f360fc3cf8ba9e90a6 (diff)
downloadsamba-8ccff3e99527b7303e75f860e50d74bb83fdfb15.tar.gz
samba-8ccff3e99527b7303e75f860e50d74bb83fdfb15.tar.bz2
samba-8ccff3e99527b7303e75f860e50d74bb83fdfb15.zip
This is C, not C++
(This used to be commit 25d210b90b6c0377046d89a1dce7a32f94fd7859)
-rw-r--r--source3/lib/substitute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index 1e3f51e2d8..ef68bce985 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -38,13 +38,13 @@ static fstring smb_user_name;
void set_local_machine_name(const char* local_name, BOOL perm)
{
static BOOL already_perm = False;
+ fstring tmp_local_machine;
+
if (already_perm)
return;
already_perm = perm;
- fstring tmp_local_machine;
-
fstrcpy(tmp_local_machine,local_name);
trim_string(tmp_local_machine," "," ");
strlower(tmp_local_machine);
@@ -60,13 +60,13 @@ void set_local_machine_name(const char* local_name, BOOL perm)
void set_remote_machine_name(const char* remote_name, BOOL perm)
{
static BOOL already_perm = False;
+ fstring tmp_remote_machine;
+
if (already_perm)
return;
already_perm = perm;
- fstring tmp_remote_machine;
-
fstrcpy(tmp_remote_machine,remote_name);
trim_string(tmp_remote_machine," "," ");
strlower(tmp_remote_machine);