summaryrefslogtreecommitdiffstats
path: root/hwclock/rtc.c
diff options
context:
space:
mode:
authorKarel Zak2007-03-21 15:05:58 +0100
committerKarel Zak2007-03-21 15:05:58 +0100
commit9abb26854c5f185683ba7bd812bb5076cedc8f0e (patch)
tree8d7101ca0d504ee7e88a382210f20838fd256af0 /hwclock/rtc.c
parenthwclock: add support for audit system (diff)
downloadkernel-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.c10
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;