]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: non-ANSI definition [smatch scan]
authorKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 14:12:45 +0000 (16:12 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 14:12:45 +0000 (16:12 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c

index b3d32dd4f3095c1e4b2bc6e10aa1547d36299fce..1c810ca85d6ae200c4d38c029f499179d2156e24 100644 (file)
@@ -742,8 +742,7 @@ ascii_day(char *p, int day) {
 }
 
 void
-trim_trailing_spaces(s)
-       char *s;
+trim_trailing_spaces(char *s)
 {
        char *p;
 
@@ -769,10 +768,7 @@ center_str(const char* src, char* dest, size_t dest_size, size_t width)
 }
 
 void
-center(str, len, separate)
-       const char *str;
-       size_t len;
-       int separate;
+center(const char *str, size_t len, int separate)
 {
        char lineout[FMT_ST_CHARS];
        center_str(str, lineout, ARRAY_SIZE(lineout), len);