diff options
author | Karel Zak | 2006-12-07 00:25:58 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:58 +0100 |
commit | 63cccae4684f83d2a462bc8abf24e51d1bd6efb6 (patch) | |
tree | 433db3f0b44e0f46e4130141f4a59db9c3564557 /hwclock/kd.c | |
parent | Imported from util-linux-2.11r tarball. (diff) | |
download | kernel-qcow2-util-linux-63cccae4684f83d2a462bc8abf24e51d1bd6efb6.tar.gz kernel-qcow2-util-linux-63cccae4684f83d2a462bc8abf24e51d1bd6efb6.tar.xz kernel-qcow2-util-linux-63cccae4684f83d2a462bc8abf24e51d1bd6efb6.zip |
Imported from util-linux-2.11t tarball.
Diffstat (limited to 'hwclock/kd.c')
-rw-r--r-- | hwclock/kd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hwclock/kd.c b/hwclock/kd.c index f3327e1cc..dbbe758f4 100644 --- a/hwclock/kd.c +++ b/hwclock/kd.c @@ -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; |