diff options
author | Denys Vlasenko | 2012-04-17 19:25:13 +0200 |
---|---|---|
committer | Denys Vlasenko | 2012-04-17 19:25:13 +0200 |
commit | d778e6c6f81b0b1c74602c5c6ddf8d1b235146de (patch) | |
tree | 3dce3e4560e9e81beb1b086cc6aa55d2825db6ce /util-linux | |
parent | 6500d123d01af895d2b8eae1a36e553a1f75e211 (diff) | |
download | busybox-d778e6c6f81b0b1c74602c5c6ddf8d1b235146de.zip busybox-d778e6c6f81b0b1c74602c5c6ddf8d1b235146de.tar.gz |
hwclock: fix wrong comparison of time value (when it will overlow int)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/hwclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 6b4e29b..379eeb2 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c @@ -43,7 +43,7 @@ static time_t read_rtc(const char **pp_rtcname, struct timeval *sys_tv, int utc) while (1) { rtc_read_tm(&tm_time, fd); gettimeofday(sys_tv, NULL); - if (before != tm_time.tm_sec) + if (before != (int)tm_time.tm_sec) break; } } |