summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-02-18 10:47:20 +0000
committerJeremy Allison <jra@samba.org>1998-02-18 10:47:20 +0000
commit920c6219b723ba001c2b2c69e4ef944407fec650 (patch)
tree4b46ff3cd0a272647c16843698ff0bc2dd4987f1 /source
parent80773e8f3becb4243e73b9b869e3bfb260e73341 (diff)
downloadsamba-920c6219b723ba001c2b2c69e4ef944407fec650.tar.gz
samba-920c6219b723ba001c2b2c69e4ef944407fec650.tar.xz
samba-920c6219b723ba001c2b2c69e4ef944407fec650.zip
Changed basename -> base_name to get around -Wshadow warning on RedHat 5.x.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/lib/util.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index a7a579a94a0..365a7651742 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -1580,12 +1580,12 @@ BOOL reduce_name(char *s,char *dir,BOOL widelinks)
#else
pstring dir2;
pstring wd;
- pstring basename;
+ pstring base_name;
pstring newname;
char *p=NULL;
BOOL relative = (*s != '/');
- *dir2 = *wd = *basename = *newname = 0;
+ *dir2 = *wd = *base_name = *newname = 0;
if (widelinks)
{
@@ -1608,8 +1608,8 @@ BOOL reduce_name(char *s,char *dir,BOOL widelinks)
/* remove any double slashes */
string_sub(s,"//","/");
- pstrcpy(basename,s);
- p = strrchr(basename,'/');
+ pstrcpy(base_name,s);
+ p = strrchr(base_name,'/');
if (!p)
return(True);
@@ -1634,7 +1634,7 @@ BOOL reduce_name(char *s,char *dir,BOOL widelinks)
}
- if (p && (p != basename))
+ if (p && (p != base_name))
{
*p = 0;
if (strcmp(p+1,".")==0)
@@ -1643,10 +1643,10 @@ BOOL reduce_name(char *s,char *dir,BOOL widelinks)
*p = '/';
}
- if (ChDir(basename) != 0)
+ if (ChDir(base_name) != 0)
{
ChDir(wd);
- DEBUG(3,("couldn't chdir for %s %s basename=%s\n",s,dir,basename));
+ DEBUG(3,("couldn't chdir for %s %s basename=%s\n",s,dir,base_name));
return(False);
}
@@ -1657,7 +1657,7 @@ BOOL reduce_name(char *s,char *dir,BOOL widelinks)
return(False);
}
- if (p && (p != basename))
+ if (p && (p != base_name))
{
strcat(newname,"/");
strcat(newname,p+1);