From: Marko Kreen Date: Wed, 25 Jun 2008 15:07:36 +0000 (+0000) Subject: basename may be non-const on some systems, make cf_username static X-Git-Tag: pgbouncer_1_2_rc2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c061e6668909c93c9be2b84795c89bb4b5e2e4d8;p=pgbouncer basename may be non-const on some systems, make cf_username static --- diff --git a/src/main.c b/src/main.c index d066ce0..d2c1a8c 100644 --- a/src/main.c +++ b/src/main.c @@ -43,7 +43,7 @@ static const char *usage_str = " -V Show version\n" " -h Show this help screen and exit\n"; -static void usage(int err, const char *exe) +static void usage(int err, char *exe) { printf(usage_str, basename(exe)); exit(err); @@ -60,7 +60,7 @@ int cf_pause_mode = P_NONE; int cf_shutdown = 0; int cf_reboot = 0; int cf_syslog = 0; -char *cf_username = ""; +static char *cf_username = ""; char *cf_syslog_facility = "daemon"; static char *cf_config_file;