]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: remove non-ANSI function declaration [smatch scan]
authorKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 16:29:55 +0000 (17:29 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 16:29:55 +0000 (17:29 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
hwclock/kd.c
hwclock/rtc.c

index 4bbca9cd6fefd083253e9adc9185ef73f68528fb..36c1bb245c9979a9423421c6628d573f17e3fa60 100644 (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;
 }
index 79b94962586d7e73cd5f0842879ba917f4b8546c..33dbccc1e6a6b69b27d0d0cd3bb88a5d70a3e242 100644 (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)