diff options
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r-- | util-linux/hwclock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 77aa2d7c3..dd66ec199 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -184,10 +184,8 @@ static void set_kernel_timezone_and_clock(int utc, const struct timeval *hctosys | |||
184 | /*tz.tz_dsttime = 0; already is */ | 184 | /*tz.tz_dsttime = 0; already is */ |
185 | set_kernel_tz(&tz); /* MIGHT warp_clock() if 1st call since boot */ | 185 | set_kernel_tz(&tz); /* MIGHT warp_clock() if 1st call since boot */ |
186 | 186 | ||
187 | if (hctosys) { /* it's --hctosys: set time too */ | 187 | if (hctosys) /* it's --hctosys: set time too */ |
188 | if (settimeofday(hctosys, NULL)) | 188 | xsettimeofday(hctosys); |
189 | bb_simple_perror_msg_and_die("settimeofday"); | ||
190 | } | ||
191 | } | 189 | } |
192 | 190 | ||
193 | static void to_sys_clock(const char **pp_rtcname, int utc) | 191 | static void to_sys_clock(const char **pp_rtcname, int utc) |