From: Karel Zak Date: Tue, 17 Jan 2012 15:50:17 +0000 (+0100) Subject: dmesg: fix non-ANSI function declaration [smatch scan] X-Git-Tag: v2.21-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cfd1ffb7aecd14d15a27eac78e006370a3d2e37;p=thirdparty%2Futil-linux.git dmesg: fix non-ANSI function declaration [smatch scan] Signed-off-by: Karel Zak --- diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index 793b1c4757..9cbe516583 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -324,7 +324,7 @@ static double time_diff(struct timeval *a, struct timeval *b) return (a->tv_sec - b->tv_sec) + (a->tv_usec - b->tv_usec) / 1E6; } -static int get_buffer_size() +static int get_buffer_size(void) { int n = klogctl(SYSLOG_ACTION_SIZE_BUFFER, NULL, 0);