From c9c1304d1dfca17bd801c05414b3d25ce805f609 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 17 Jan 2012 17:29:55 +0100 Subject: [PATCH] hwclock: remove non-ANSI function declaration [smatch scan] Signed-off-by: Karel Zak --- hwclock/kd.c | 2 +- hwclock/rtc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.3