hwclock: remove non-ANSI function declaration [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-01-17 17:29:55 +01:00
parent 3d4820f4d1
commit c9c1304d1d
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#if !defined(__m68k__) || !defined(KDGHWCLK)
#include <stddef.h>
struct clock_ops *probe_for_kd_clock()
struct clock_ops *probe_for_kd_clock(void)
{
return NULL;
}

View File

@ -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)