aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <larsh@hal-2004.(none)>2007-01-06 02:20:23 (JST)
committerGravatar Lars Hjemli <larsh@hal-2004.(none)>2007-01-06 02:20:23 (JST)
commitf98e72684bddb5f746f1d4edf663c70076105c9d (patch)
tree0c67f32f454cf9725b2c9b91083d4dc261f0538c /ui-shared.c
parenta6a11125283cd159bbd22e4e3c619bccad1162df (diff)
downloadcgit-f98e72684bddb5f746f1d4edf663c70076105c9d.zip
cgit-f98e72684bddb5f746f1d4edf663c70076105c9d.tar.gz
Use long instead of int when converting from TTL to seconds
Just to be really, really sure about embarrasing overflow settings Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index b9c1243..bebd3e0 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -25,7 +25,7 @@ static char *http_date(time_t t)
25 tm->tm_hour, tm->tm_min, tm->tm_sec); 25 tm->tm_hour, tm->tm_min, tm->tm_sec);
26} 26}
27 27
28static int ttl_seconds(int ttl) 28static long ttl_seconds(long ttl)
29{ 29{
30 if (ttl<0) 30 if (ttl<0)
31 return 60 * 60 * 24 * 365; 31 return 60 * 60 * 24 * 365;