From: Karel Zak Date: Fri, 21 Jan 2011 00:00:18 +0000 (+0100) Subject: don't declare usage() without parametr X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf006d71f24100b9124ee58a8cfd93097426ad4;p=util-linux don't declare usage() without parametr Signed-off-by: Karel Zak --- diff --git a/login-utils/wall.c b/login-utils/wall.c index 650bcf48..03029e99 100644 --- a/login-utils/wall.c +++ b/login-utils/wall.c @@ -82,7 +82,7 @@ int nobanner; int mbufsize; char *mbuf; -static void __attribute__((__noreturn__)) usage() +static void __attribute__((__noreturn__)) usage(void) { errx(EXIT_FAILURE, _("usage: %s [-n] [file]\n"), program_invocation_short_name); diff --git a/text-utils/col.c b/text-utils/col.c index 9349720c..c31a32af 100644 --- a/text-utils/col.c +++ b/text-utils/col.c @@ -112,7 +112,7 @@ int pass_unknown_seqs; /* whether to pass unknown control sequences */ if (putwchar(ch) == WEOF) \ wrerr(); -static void __attribute__((__noreturn__)) usage() +static void __attribute__((__noreturn__)) usage(void) { errx(EXIT_FAILURE, _("usage: %s [-bfpx] [-l nline]"), program_invocation_short_name); diff --git a/text-utils/hexsyntax.c b/text-utils/hexsyntax.c index f05043c7..8fdde192 100644 --- a/text-utils/hexsyntax.c +++ b/text-utils/hexsyntax.c @@ -125,7 +125,7 @@ newsyntax(int argc, char ***argvp) } void -usage() +usage(void) { fprintf(stderr, _("hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]\n"));