From: Karel Zak Date: Tue, 17 Jan 2012 16:29:55 +0000 (+0100) Subject: hwclock: remove non-ANSI function declaration [smatch scan] X-Git-Tag: v2.21-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9c1304d1dfca17bd801c05414b3d25ce805f609;p=thirdparty%2Futil-linux.git hwclock: remove non-ANSI function declaration [smatch scan] Signed-off-by: Karel Zak --- diff --git a/hwclock/kd.c b/hwclock/kd.c index 4bbca9cd6f..36c1bb245c 100644 --- a/hwclock/kd.c +++ b/hwclock/kd.c @@ -24,7 +24,7 @@ #if !defined(__m68k__) || !defined(KDGHWCLK) #include -struct clock_ops *probe_for_kd_clock() +struct clock_ops *probe_for_kd_clock(void) { return NULL; } diff --git a/hwclock/rtc.c b/hwclock/rtc.c index 79b9496258..33dbccc1e6 100644 --- a/hwclock/rtc.c +++ b/hwclock/rtc.c @@ -410,7 +410,7 @@ static struct clock_ops rtc = { }; /* return &rtc if /dev/rtc can be opened, NULL otherwise */ -struct clock_ops *probe_for_rtc_clock() +struct clock_ops *probe_for_rtc_clock(void) { int rtc_fd = open_rtc(); if (rtc_fd >= 0)