]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: fix compiler warning [-Wmissing-prototypes]
authorKarel Zak <kzak@redhat.com>
Mon, 16 Jul 2012 16:43:53 +0000 (18:43 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jul 2012 16:43:53 +0000 (18:43 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock-cmos.c
sys-utils/hwclock-kd.c

index 85452b5c240c134af64c5f634b764ae22f181e1c..61a15a3fb2c6f97a3daf1ef27893d501b4b22b86 100644 (file)
@@ -82,12 +82,12 @@ int inb(int c __attribute__ ((__unused__)))
 extern unsigned int inb(unsigned long port);
 extern void outb(unsigned char b, unsigned long port);
 #else
-void outb(int a __attribute__ ((__unused__)),
+static void outb(int a __attribute__ ((__unused__)),
          int b __attribute__ ((__unused__)))
 {
 }
 
-int inb(int c __attribute__ ((__unused__)))
+static int inb(int c __attribute__ ((__unused__)))
 {
        return 0;
 }
index ec98f45ba56b28a3a04a546dc3ee6b94edca2ae0..bfe50dc15f0467cfeb7f4f406746fadcfb19221f 100644 (file)
@@ -2,6 +2,7 @@
  * kd.c - KDGHWCLK stuff, possibly m68k only, likely to be deprecated
  */
 
+# include "hwclock.h"
 
 #ifdef __m68k__
 
@@ -13,8 +14,6 @@
 # include "nls.h"
 # include "usleep.h"
 
-# include "hwclock.h"
-
 /* Get defines for KDGHWCLK and KDSHWCLK (m68k) */
 # include <linux/kd.h>