From 075a9fe96fbfbb67a95d81b4487cbb5d746922ad Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 6 Nov 2002 20:13:02 +0000 Subject: Fix compiler warnings. (This used to be commit 3a68613e934e25f2ccfbf5afa5e26b5f47b40a53) --- source3/lib/popt_common.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source3/lib') 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; -- cgit