From: Karel Zak Date: Mon, 12 Sep 2011 14:12:45 +0000 (+0200) Subject: cal: non-ANSI definition [smatch scan] X-Git-Tag: v2.21-rc1~415 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2985e3833b7c51b34aabe51beca7989548c7b5ac;p=thirdparty%2Futil-linux.git cal: non-ANSI definition [smatch scan] Signed-off-by: Karel Zak --- diff --git a/misc-utils/cal.c b/misc-utils/cal.c index b3d32dd4f3..1c810ca85d 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -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);