]> err.no Git - util-linux/commitdiff
hwclock: clock.h is included more than once
authorKarel Zak <kzak@redhat.com>
Wed, 26 Nov 2008 13:31:19 +0000 (14:31 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Nov 2008 13:31:19 +0000 (14:31 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
hwclock/kd.c

index 6be5fabd08e6cc6f07ce002ebcd0cbf4ff6bb2a7..3b5708a91f0d38920557ee8558cd0853a4b326c8 100644 (file)
@@ -1,9 +1,9 @@
 /* kd.c - KDGHWCLK stuff, possibly m68k only - deprecated */
 
-#ifndef __m68k__
-
 #include "clock.h"
 
+#ifndef __m68k__
+
 struct clock_ops *
 probe_for_kd_clock() {
        return NULL;
@@ -13,11 +13,9 @@ probe_for_kd_clock() {
 
 #include <unistd.h>            /* for close() */
 #include <fcntl.h>             /* for O_RDONLY */
-#include <errno.h>
 #include <sysexits.h>
 #include <sys/ioctl.h>
 
-#include "clock.h"
 #include "nls.h"
 
 static int con_fd = -1;                /* opened by probe_for_kd_clock() */