mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +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)
|
||||
err(EXIT_FAILURE,
|
||||
"safe_realloc: cannot allocate %zu bytes", size);
|
||||
"safe_realloc: cannot allocate %lu bytes", size);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -164,11 +164,10 @@ void __attribute__ ((__noreturn__)) usage(int status)
|
|||
out = status != 0 ? stderr : stdout;
|
||||
|
||||
fprintf(out, "\
|
||||
Usage: %s [OPTIONS]\n\n", program_invocation_short_name);
|
||||
|
||||
fprintf(out, "\
|
||||
Usage: %s [OPTIONS]\n\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\
|
||||
-l, --leases=FILE path to the dhcpd.leases file\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\
|
||||
x for xml\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\
|
||||
n name\n\
|
||||
i IP\n\
|
||||
|
|
@ -189,7 +189,8 @@ This is ISC dhcpd pools usage analyzer.\n\
|
|||
e t+c perc\n\
|
||||
-r, --reverse reverse order sort\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\
|
||||
-h, --help this screen\n\
|
||||
\n\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue