]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - hwclock/kd.c
Imported from util-linux-2.11t tarball.
[thirdparty/util-linux.git] / hwclock / kd.c
index f3327e1ccb0047f530ca4019e45c0dd42b34d376..dbbe758f42fac7252b6dc4747f6c338871c9d523 100644 (file)
@@ -1,6 +1,7 @@
 /* kd.c - KDGHWCLK stuff, possibly m68k only */
 #include <unistd.h>            /* for close() */
 #include <fcntl.h>             /* for O_RDONLY */
+#include <sysexits.h>
 #include <sys/ioctl.h>
 
 #include "../defines.h"                /* for HAVE_nanosleep */
@@ -90,7 +91,7 @@ read_hardware_clock_kd(struct tm *tm) {
 
   if (ioctl(con_fd, KDGHWCLK, &t) == -1) {
     outsyserr(_("ioctl() failed to read time from %s"), con_fd_filename);
-    exit(5);
+    exit(EX_IOERR);
   }
 
   tm->tm_sec  = t.sec;