X-Git-Url: https://git.m6w6.name/?p=m6w6%2Flibmemcached;a=blobdiff_plain;f=src%2Fp9y%2Fgetopt.c;h=6d0fe62a87f449dfc6202102414ced4d3ead20b4;hp=40434941454d0999fde0a9335cd879424dbc5c76;hb=ac25aff8b62e8596e20f0fd2a2c3eda96bdb437e;hpb=f875d401486e0e12d30b28e9d62220fdf6cd8561 diff --git a/src/p9y/getopt.c b/src/p9y/getopt.c index 40434941..6d0fe62a 100644 --- a/src/p9y/getopt.c +++ b/src/p9y/getopt.c @@ -110,7 +110,7 @@ char *optarg; /* argument associated with option */ #define INORDER (int)1 #ifndef __CYGWIN__ -#define __progname __argv[0] +#define progname __argv[0] #else extern char __declspec(dllimport) *__progname; #endif @@ -145,7 +145,7 @@ static const char illoptstring[] = "unknown option -- %s"; static void _vwarnx(const char *fmt,va_list ap) { - (void)fprintf(stderr,"%s: ",__progname); + (void)fprintf(stderr,"%s: ", progname); if (fmt != NULL) (void)vfprintf(stderr,fmt,ap); (void)fprintf(stderr,"\n");