don't declare usage() without parametr

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2011-01-21 01:00:18 +01:00
parent 665c289a06
commit bcf006d71f
3 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ int nobanner;
int mbufsize; int mbufsize;
char *mbuf; char *mbuf;
static void __attribute__((__noreturn__)) usage() static void __attribute__((__noreturn__)) usage(void)
{ {
errx(EXIT_FAILURE, _("usage: %s [-n] [file]\n"), errx(EXIT_FAILURE, _("usage: %s [-n] [file]\n"),
program_invocation_short_name); program_invocation_short_name);

View File

@ -112,7 +112,7 @@ int pass_unknown_seqs; /* whether to pass unknown control sequences */
if (putwchar(ch) == WEOF) \ if (putwchar(ch) == WEOF) \
wrerr(); wrerr();
static void __attribute__((__noreturn__)) usage() static void __attribute__((__noreturn__)) usage(void)
{ {
errx(EXIT_FAILURE, _("usage: %s [-bfpx] [-l nline]"), errx(EXIT_FAILURE, _("usage: %s [-bfpx] [-l nline]"),
program_invocation_short_name); program_invocation_short_name);

View File

@ -125,7 +125,7 @@ newsyntax(int argc, char ***argvp)
} }
void void
usage() usage(void)
{ {
fprintf(stderr, fprintf(stderr,
_("hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]\n")); _("hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]\n"));