summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2008-11-03 12:36:34 -0800
committerTim Prouty <tprouty@samba.org>2008-11-03 14:44:38 -0800
commit2efacde8c4346130227728f11a98481ed1e01515 (patch)
tree88136a5e20bc70b80bc6d4df55a174db5bff1a56 /source3/lib
parent4f25c779243ba38fce26dea51feafcf28492d79b (diff)
downloadsamba-2efacde8c4346130227728f11a98481ed1e01515.tar.gz
samba-2efacde8c4346130227728f11a98481ed1e01515.tar.bz2
samba-2efacde8c4346130227728f11a98481ed1e01515.zip
s3: fix a few "shadows a global declaration" warnings
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/popt_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c
index 8ceac26bf2..2e6d3b3cb1 100644
--- a/source3/lib/popt_common.c
+++ b/source3/lib/popt_common.c
@@ -39,7 +39,7 @@ extern bool override_logfile;
static void set_logfile(poptContext con, const char * arg)
{
- char *logfile = NULL;
+ char *lfile = NULL;
const char *pname;
/* Find out basename of current program */
@@ -50,11 +50,11 @@ static void set_logfile(poptContext con, const char * arg)
else
pname++;
- if (asprintf(&logfile, "%s/log.%s", arg, pname) < 0) {
+ if (asprintf(&lfile, "%s/log.%s", arg, pname) < 0) {
return;
}
- lp_set_logfile(logfile);
- SAFE_FREE(logfile);
+ lp_set_logfile(lfile);
+ SAFE_FREE(lfile);
}
static bool PrintSambaVersionString;