]> git.ipfire.org Git - thirdparty/git.git/blobdiff - ref-filter.c
timestamp_t: a new data type for timestamps
[thirdparty/git.git] / ref-filter.c
index c7836ae07bd7a5197905b897a43a0f0161923a39..1fc5e9970db1b821384e61942db856504ce46902 100644 (file)
@@ -849,7 +849,7 @@ static void grab_date(const char *buf, struct atom_value *v, const char *atomnam
 {
        const char *eoemail = strstr(buf, "> ");
        char *zone;
-       unsigned long timestamp;
+       timestamp_t timestamp;
        long tz;
        struct date_mode date_mode = { DATE_NORMAL };
        const char *formatp;
@@ -869,7 +869,7 @@ static void grab_date(const char *buf, struct atom_value *v, const char *atomnam
        if (!eoemail)
                goto bad;
        timestamp = parse_timestamp(eoemail + 2, &zone, 10);
-       if (timestamp == ULONG_MAX)
+       if (timestamp == TIME_MAX)
                goto bad;
        tz = strtol(zone, NULL, 10);
        if ((tz == LONG_MIN || tz == LONG_MAX) && errno == ERANGE)