summaryrefslogtreecommitdiffstats
path: root/hwclock/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwclock/rtc.c')
-rw-r--r--hwclock/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c
index 46a5b5258..2acde81ef 100644
--- a/hwclock/rtc.c
+++ b/hwclock/rtc.c
@@ -163,7 +163,7 @@ do_rtc_read_ioctl(int rtc_fd, struct tm *tm) {
perror(ioctlname);
fprintf(stderr, _("ioctl() to %s to read the time failed.\n"),
rtc_dev_name);
- hwclock_exit(EX_IOERR);
+ return -1;
}
tm->tm_isdst = -1; /* don't know whether it's dst */