summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2011-01-21 01:00:18 +0100
committerKarel Zak2011-01-21 01:00:18 +0100
commitbcf006d71f24100b9124ee58a8cfd93097426ad4 (patch)
tree23d5c1abb244b7b0b1a5e0967b1a5abec7460fb1
parentuse uint32_t instead of u_int32_t (diff)
downloadkernel-qcow2-util-linux-bcf006d71f24100b9124ee58a8cfd93097426ad4.tar.gz
kernel-qcow2-util-linux-bcf006d71f24100b9124ee58a8cfd93097426ad4.tar.xz
kernel-qcow2-util-linux-bcf006d71f24100b9124ee58a8cfd93097426ad4.zip
don't declare usage() without parametr
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--login-utils/wall.c2
-rw-r--r--text-utils/col.c2
-rw-r--r--text-utils/hexsyntax.c2
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"));