diff options
author | Tim Potter <tpot@samba.org> | 2002-11-06 20:13:02 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-11-06 20:13:02 +0000 |
commit | 075a9fe96fbfbb67a95d81b4487cbb5d746922ad (patch) | |
tree | bfc4e88fa858ffacdccbd3dd922eec784f4c5f96 /source3 | |
parent | 809c4715da211df96482fb82427f0d3797119b7a (diff) | |
download | samba-075a9fe96fbfbb67a95d81b4487cbb5d746922ad.tar.gz samba-075a9fe96fbfbb67a95d81b4487cbb5d746922ad.tar.bz2 samba-075a9fe96fbfbb67a95d81b4487cbb5d746922ad.zip |
Fix compiler warnings.
(This used to be commit 3a68613e934e25f2ccfbf5afa5e26b5f47b40a53)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/popt_common.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c index c9f70d6527..aaec448762 100644 --- a/source3/lib/popt_common.c +++ b/source3/lib/popt_common.c @@ -41,16 +41,17 @@ static void popt_common_callback(poptContext con, const char *arg, const void *data) { pstring logfile; - char *pname; + const char *pname; /* Find out basename of current program */ pname = strrchr_m(poptGetInvocationName(con),'/'); - if(!pname)pname = poptGetInvocationName(con); - else pname++; + if (!pname) + pname = poptGetInvocationName(con); + else + pname++; if (reason == POPT_CALLBACK_REASON_PRE) { - pstring logfile; pstr_sprintf(logfile, "%s/log.%s", dyn_LOGFILEBASE, pname); lp_set_logfile(logfile); return; |