diff options
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r-- | util-linux/hwclock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 5b990df0c..00abe10a6 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -67,7 +67,7 @@ static time_t read_rtc(int utc) | |||
67 | if (( rtc = open ( "/dev/misc/rtc", O_RDONLY )) < 0 ) | 67 | if (( rtc = open ( "/dev/misc/rtc", O_RDONLY )) < 0 ) |
68 | bb_perror_msg_and_die ( "Could not access RTC" ); | 68 | bb_perror_msg_and_die ( "Could not access RTC" ); |
69 | } | 69 | } |
70 | memset ( &tm, 0, sizeof( struct tm )); | 70 | memset ( &tm, 0, sizeof( struct tm )); |
71 | if ( ioctl ( rtc, RTC_RD_TIME, &tm ) < 0 ) | 71 | if ( ioctl ( rtc, RTC_RD_TIME, &tm ) < 0 ) |
72 | bb_perror_msg_and_die ( "Could not read time from RTC" ); | 72 | bb_perror_msg_and_die ( "Could not read time from RTC" ); |
73 | tm. tm_isdst = -1; // not known | 73 | tm. tm_isdst = -1; // not known |
@@ -187,10 +187,10 @@ static int check_utc(void) | |||
187 | } | 187 | } |
188 | 188 | ||
189 | #define HWCLOCK_OPT_LOCALTIME 0x01 | 189 | #define HWCLOCK_OPT_LOCALTIME 0x01 |
190 | #define HWCLOCK_OPT_UTC 0x02 | 190 | #define HWCLOCK_OPT_UTC 0x02 |
191 | #define HWCLOCK_OPT_SHOW 0x04 | 191 | #define HWCLOCK_OPT_SHOW 0x04 |
192 | #define HWCLOCK_OPT_HCTOSYS 0x08 | 192 | #define HWCLOCK_OPT_HCTOSYS 0x08 |
193 | #define HWCLOCK_OPT_SYSTOHC 0x10 | 193 | #define HWCLOCK_OPT_SYSTOHC 0x10 |
194 | 194 | ||
195 | extern int hwclock_main ( int argc, char **argv ) | 195 | extern int hwclock_main ( int argc, char **argv ) |
196 | { | 196 | { |