From bcf006d71f24100b9124ee58a8cfd93097426ad4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 21 Jan 2011 01:00:18 +0100 Subject: [PATCH] don't declare usage() without parametr Signed-off-by: Karel Zak --- login-utils/wall.c | 2 +- text-utils/col.c | 2 +- text-utils/hexsyntax.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/login-utils/wall.c b/login-utils/wall.c index 650bcf486..03029e99d 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 9349720cb..c31a32afb 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 f05043c72..8fdde1922 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"));