summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2005-04-16 04:48:48 +0000
committerMike Frysinger2005-04-16 04:48:48 +0000
commitb31566ef3273ad32a1e318d9293e44cc50d07b91 (patch)
tree8ac9b455fb6b6225e08014c6ea30a18f9b733e63
parent4e5936ef9501da7d2f010d8c4f3703505b28b2c5 (diff)
downloadbusybox-b31566ef3273ad32a1e318d9293e44cc50d07b91.zip
busybox-b31566ef3273ad32a1e318d9293e44cc50d07b91.tar.gz
minor style touchups
-rw-r--r--util-linux/hwclock.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index a260d74..2f62661 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -46,7 +46,7 @@ struct linux_rtc_time {
int tm_yday;
int tm_isdst;
};
-
+
#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
@@ -182,11 +182,11 @@ static int check_utc(void)
return utc;
}
-#define HWCLOCK_OPT_LOCALTIME 1
-#define HWCLOCK_OPT_UTC 2
-#define HWCLOCK_OPT_SHOW 4
-#define HWCLOCK_OPT_HCTOSYS 8
-#define HWCLOCK_OPT_SYSTOHC 16
+#define HWCLOCK_OPT_LOCALTIME 0x01
+#define HWCLOCK_OPT_UTC 0x02
+#define HWCLOCK_OPT_SHOW 0x04
+#define HWCLOCK_OPT_HCTOSYS 0x08
+#define HWCLOCK_OPT_SYSTOHC 0x10
extern int hwclock_main ( int argc, char **argv )
{
@@ -213,11 +213,11 @@ static const struct option hwclock_long_options[] = {
}
/* If -u or -l wasn't given check if we are using utc */
- if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME))
+ if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME))
utc = opt & HWCLOCK_OPT_UTC;
else
utc = check_utc();
-
+
if (opt & HWCLOCK_OPT_HCTOSYS) {
return to_sys_clock ( utc );
}