aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-16 04:48:48 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-16 04:48:48 +0000
commitf43aef893fc257d07a21c65b125ff521eb854d82 (patch)
tree8ac9b455fb6b6225e08014c6ea30a18f9b733e63
parentbcffd7a80dbf6f6d58670849274394733efde967 (diff)
downloadbusybox-w32-f43aef893fc257d07a21c65b125ff521eb854d82.tar.gz
busybox-w32-f43aef893fc257d07a21c65b125ff521eb854d82.tar.bz2
busybox-w32-f43aef893fc257d07a21c65b125ff521eb854d82.zip
minor style touchups
git-svn-id: svn://busybox.net/trunk/busybox@10114 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 a260d7448..2f6266167 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -46,7 +46,7 @@ struct linux_rtc_time {
46 int tm_yday; 46 int tm_yday;
47 int tm_isdst; 47 int tm_isdst;
48}; 48};
49 49
50#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */ 50#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
51#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */ 51#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
52 52
@@ -182,11 +182,11 @@ static int check_utc(void)
182 return utc; 182 return utc;
183} 183}
184 184
185#define HWCLOCK_OPT_LOCALTIME 1 185#define HWCLOCK_OPT_LOCALTIME 0x01
186#define HWCLOCK_OPT_UTC 2 186#define HWCLOCK_OPT_UTC 0x02
187#define HWCLOCK_OPT_SHOW 4 187#define HWCLOCK_OPT_SHOW 0x04
188#define HWCLOCK_OPT_HCTOSYS 8 188#define HWCLOCK_OPT_HCTOSYS 0x08
189#define HWCLOCK_OPT_SYSTOHC 16 189#define HWCLOCK_OPT_SYSTOHC 0x10
190 190
191extern int hwclock_main ( int argc, char **argv ) 191extern int hwclock_main ( int argc, char **argv )
192{ 192{
@@ -213,11 +213,11 @@ static const struct option hwclock_long_options[] = {
213 } 213 }
214 214
215 /* If -u or -l wasn't given check if we are using utc */ 215 /* If -u or -l wasn't given check if we are using utc */
216 if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME)) 216 if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME))
217 utc = opt & HWCLOCK_OPT_UTC; 217 utc = opt & HWCLOCK_OPT_UTC;
218 else 218 else
219 utc = check_utc(); 219 utc = check_utc();
220 220
221 if (opt & HWCLOCK_OPT_HCTOSYS) { 221 if (opt & HWCLOCK_OPT_HCTOSYS) {
222 return to_sys_clock ( utc ); 222 return to_sys_clock ( utc );
223 } 223 }