X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=test-date.c;h=6bcd5b03c078bc532e074ef8e8775a51d0eef219;hb=ffe6dc081aa23d56e6306d143d99ca508db38c5e;hp=ac6854a541ec762a68b01bbc5f591c6c49d71cac;hpb=ad9d8e8f0f13e054ee30fcdcdb51973ddcfadb37;p=git.git diff --git a/test-date.c b/test-date.c index ac6854a54..6bcd5b03c 100644 --- a/test-date.c +++ b/test-date.c @@ -20,12 +20,12 @@ static void parse_dates(char **argv, struct timeval *now) { for (; *argv; argv++) { char result[100]; - time_t t; + unsigned long t; int tz; result[0] = 0; parse_date(*argv, result, sizeof(result)); - if (sscanf(result, "%ld %d", &t, &tz) == 2) + if (sscanf(result, "%lu %d", &t, &tz) == 2) printf("%s -> %s\n", *argv, show_date(t, tz, DATE_ISO8601)); else