]> err.no Git - util-linux/commitdiff
don't declare usage() without parametr
authorKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2011 00:00:18 +0000 (01:00 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2011 00:00:18 +0000 (01:00 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/wall.c
text-utils/col.c
text-utils/hexsyntax.c

index 650bcf48685ab16989fd48196e1822e6ebd29a7c..03029e99d474d41e781271abf41cb4be2b8a144c 100644 (file)
@@ -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);
index 9349720cba7944bb600d80e42ef9a9338657b564..c31a32afb59848732bed16bae0b694051f180dc8 100644 (file)
@@ -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);
index f05043c722a61149b9941bc69d0db769f0b44549..8fdde1922eedf64622069bb4655d75840ab80f0a 100644 (file)
@@ -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"));