diff options
author | Karel Zak | 2007-03-21 15:05:58 +0100 |
---|---|---|
committer | Karel Zak | 2007-03-21 15:05:58 +0100 |
commit | 9abb26854c5f185683ba7bd812bb5076cedc8f0e (patch) | |
tree | 8d7101ca0d504ee7e88a382210f20838fd256af0 /hwclock/rtc.c | |
parent | hwclock: add support for audit system (diff) | |
download | kernel-qcow2-util-linux-9abb26854c5f185683ba7bd812bb5076cedc8f0e.tar.gz kernel-qcow2-util-linux-9abb26854c5f185683ba7bd812bb5076cedc8f0e.tar.xz kernel-qcow2-util-linux-9abb26854c5f185683ba7bd812bb5076cedc8f0e.zip |
hwclock: remove tailing white-spaces and clean up clock.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/rtc.c')
-rw-r--r-- | hwclock/rtc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c index dddb1e372..f8e626eb8 100644 --- a/hwclock/rtc.c +++ b/hwclock/rtc.c @@ -177,7 +177,7 @@ static int busywait_for_rtc_clock_tick(const int rtc_fd) { /*---------------------------------------------------------------------------- Wait for the top of a clock tick by reading /dev/rtc in a busy loop until - we see it. + we see it. -----------------------------------------------------------------------------*/ struct tm start_time; /* The time when we were called (and started waiting) */ @@ -395,13 +395,13 @@ get_epoch_rtc(unsigned long *epoch_p, int silent) { rtc_fd = open_rtc(); if (rtc_fd < 0) { if (!silent) { - if (errno == ENOENT) + if (errno == ENOENT) fprintf(stderr, _( "To manipulate the epoch value in the kernel, we must " "access the Linux 'rtc' device driver via the device special " "file %s. This file does not exist on this system.\n"), rtc_dev_name); - else + else outsyserr(_("Unable to open %s"), rtc_dev_name); } return 1; @@ -442,7 +442,7 @@ set_epoch_rtc(unsigned long epoch) { rtc_fd = open_rtc(); if (rtc_fd < 0) { - if (errno == ENOENT) + if (errno == ENOENT) fprintf(stderr, _("To manipulate the epoch value in the kernel, we must " "access the Linux 'rtc' device driver via the device special " "file %s. This file does not exist on this system.\n"), @@ -460,7 +460,7 @@ set_epoch_rtc(unsigned long epoch) { if (errno == EINVAL) fprintf(stderr, _("The kernel device driver for %s " "does not have the RTC_EPOCH_SET ioctl.\n"), rtc_dev_name); - else + else outsyserr(_("ioctl(RTC_EPOCH_SET) to %s failed"), rtc_dev_name); close(rtc_fd); return 1; |