Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

hwclock: fix wrong comparison of time value (when it will overlow int)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
  • Loading branch information...
commit d778e6c6f81b0b1c74602c5c6ddf8d1b235146de 1 parent 6500d12
Denys Vlasenko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  util-linux/hwclock.c
View
2  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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.