]> git.cameronkatri.com Git - cgit.git/commitdiff
Use long instead of int when converting from TTL to seconds
authorLars Hjemli <larsh@hal-2004.(none)>
Fri, 5 Jan 2007 17:20:23 +0000 (18:20 +0100)
committerLars Hjemli <larsh@hal-2004.(none)>
Fri, 5 Jan 2007 17:20:23 +0000 (18:20 +0100)
Just to be really, really sure about embarrasing overflow settings

Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
ui-shared.c

index b9c124393741bb290de02a79f91292dd7a23bf3e..bebd3e01b9ad7af2748788cf3a0f919bc4c5e73b 100644 (file)
@@ -25,7 +25,7 @@ static char *http_date(time_t t)
                   tm->tm_hour, tm->tm_min, tm->tm_sec);
 }
 
                   tm->tm_hour, tm->tm_min, tm->tm_sec);
 }
 
-static int ttl_seconds(int ttl)
+static long ttl_seconds(long ttl)
 {
        if (ttl<0)
                return 60 * 60 * 24 * 365;
 {
        if (ttl<0)
                return 60 * 60 * 24 * 365;