summaryrefslogtreecommitdiff
path: root/tests/rtc-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rtc-test.c')
-rw-r--r--tests/rtc-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rtc-test.c b/tests/rtc-test.c
index c32b36a01b..983a980bab 100644
--- a/tests/rtc-test.c
+++ b/tests/rtc-test.c
@@ -161,12 +161,12 @@ static void check_time(int wiggle)
}
if (!(tm_cmp(&start, datep) <= 0 && tm_cmp(datep, &end) <= 0)) {
- time_t t, s;
+ long t, s;
start.tm_isdst = datep->tm_isdst;
- t = mktime(datep);
- s = mktime(&start);
+ t = (long)mktime(datep);
+ s = (long)mktime(&start);
if (t < s) {
g_test_message("RTC is %ld second(s) behind wall-clock\n", (s - t));
} else {