mirror of
https://github.com/sheumann/hush.git
synced 2025-01-11 08:29:54 +00:00
hwclock: fix wrong comparison of time value (when it will overlow int)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6500d123d0
commit
d778e6c6f8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user