mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
other: fix two warnings
other.c:77:7: warning: ISO C90 does not support the 'z' gnu_printf length modifier [-Wformat] other.c:169:2: warning: string length '1046' is greater than the length '509' ISO C90 compilers are required to support [-Woverlength-strings] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
b1cd84e804
commit
d6e691bbe4
1 changed files with 8 additions and 7 deletions
15
src/other.c
15
src/other.c
|
|
@ -74,7 +74,7 @@ void *safe_realloc(void *ptr, const size_t size)
|
||||||
|
|
||||||
if (!ret && size)
|
if (!ret && size)
|
||||||
err(EXIT_FAILURE,
|
err(EXIT_FAILURE,
|
||||||
"safe_realloc: cannot allocate %zu bytes", size);
|
"safe_realloc: cannot allocate %lu bytes", size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -164,11 +164,10 @@ void __attribute__ ((__noreturn__)) usage(int status)
|
||||||
out = status != 0 ? stderr : stdout;
|
out = status != 0 ? stderr : stdout;
|
||||||
|
|
||||||
fprintf(out, "\
|
fprintf(out, "\
|
||||||
Usage: %s [OPTIONS]\n\n", program_invocation_short_name);
|
Usage: %s [OPTIONS]\n\n\
|
||||||
|
|
||||||
fprintf(out, "\
|
|
||||||
This is ISC dhcpd pools usage analyzer.\n\
|
This is ISC dhcpd pools usage analyzer.\n\
|
||||||
\n\
|
\n", program_invocation_short_name);
|
||||||
|
fprintf(out, "\
|
||||||
-c, --config=FILE path to the dhcpd.conf file\n\
|
-c, --config=FILE path to the dhcpd.conf file\n\
|
||||||
-l, --leases=FILE path to the dhcpd.leases file\n\
|
-l, --leases=FILE path to the dhcpd.leases file\n\
|
||||||
-f, --format=[thHcxX] output format\n\
|
-f, --format=[thHcxX] output format\n\
|
||||||
|
|
@ -177,7 +176,8 @@ This is ISC dhcpd pools usage analyzer.\n\
|
||||||
H for full html page\n\
|
H for full html page\n\
|
||||||
x for xml\n\
|
x for xml\n\
|
||||||
X for xml with active lease details\n\
|
X for xml with active lease details\n\
|
||||||
c for comma separated values\n\
|
c for comma separated values\n");
|
||||||
|
fprintf(out, "\
|
||||||
-s, --sort=[nimcptTe] sort ranges by\n\
|
-s, --sort=[nimcptTe] sort ranges by\n\
|
||||||
n name\n\
|
n name\n\
|
||||||
i IP\n\
|
i IP\n\
|
||||||
|
|
@ -189,7 +189,8 @@ This is ISC dhcpd pools usage analyzer.\n\
|
||||||
e t+c perc\n\
|
e t+c perc\n\
|
||||||
-r, --reverse reverse order sort\n\
|
-r, --reverse reverse order sort\n\
|
||||||
-o, --output=FILE output into a file\n\
|
-o, --output=FILE output into a file\n\
|
||||||
-L, --limit=NR output limit mask 77 - 00\n\
|
-L, --limit=NR output limit mask 77 - 00\n");
|
||||||
|
fprintf(out, "\
|
||||||
-v, --version version information\n\
|
-v, --version version information\n\
|
||||||
-h, --help this screen\n\
|
-h, --help this screen\n\
|
||||||
\n\
|
\n\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue