summaryrefslogtreecommitdiff
path: root/source/web/swat.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-08 16:59:30 +0000
committerJeremy Allison <jra@samba.org>1998-05-08 16:59:30 +0000
commit61c1dbb9785ed1e6fe40f93c7cc65024884df6f5 (patch)
tree0a4baf1dcdd564982d597f43b9f849c8d7d1d54a /source/web/swat.c
parent6dde50738fcdbaae799101b84ab6b6270696193d (diff)
downloadsamba-61c1dbb9785ed1e6fe40f93c7cc65024884df6f5.tar.gz
clitar.c: #ifdef'ed out all the bits that were giving 'defined but not used'
messages. nttrans.c: More updates. smb.h: Removed stuff that didn't belong in the smb_passwd struct. Persuaded Luke to use a new structure. web/swat.c: Fixed gcc complaints about shadowing global 'string'. Jeremy.
Diffstat (limited to 'source/web/swat.c')
-rw-r--r--source/web/swat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/web/swat.c b/source/web/swat.c
index e95ac5abd45..b96c7d0ec79 100644
--- a/source/web/swat.c
+++ b/source/web/swat.c
@@ -48,16 +48,16 @@ int i;
return(i);
}
-static char *fix_backslash(char *string)
+static char *fix_backslash(char *str)
{
static char newstring[1024];
char *p = newstring;
*p = '\0';
- while (*string) {
- if (*string == '\\') {*p++ = '\\';*p++ = '\\';}
- else *p++ = *string;
- ++string;
+ while (*str) {
+ if (*str == '\\') {*p++ = '\\';*p++ = '\\';}
+ else *p++ = *str;
+ ++str;
*p = '\0';
}
return newstring;