Fix some compiler warnings emitted by gcc-4.8.0
[oweals/busybox.git] / util-linux / hwclock.c
index 6b4e29bfa141ba995ade371109def3c52680f8ef..379eeb25375db4dfc3f469db68864e4e9f8ad56f 100644 (file)
@@ -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;
                }
        }