]> granicus.if.org Git - curl/commitdiff
store times in time_t
authorDaniel Stenberg <daniel@haxx.se>
Wed, 10 Mar 2004 09:36:43 +0000 (09:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 10 Mar 2004 09:36:43 +0000 (09:36 +0000)
lib/hostip.c

index 8705cd515a1e3852a82f893af37100ab37ee8e74..5f61579ef8c33e706fb9f09719ff95eebcd31496 100644 (file)
@@ -184,7 +184,7 @@ create_hostcache_id(char *server, int port, size_t *entry_len)
 
 struct hostcache_prune_data {
   int cache_timeout;
-  int now;
+  time_t now;
 };
 
 static int
@@ -205,7 +205,7 @@ hostcache_timestamp_remove(void *datap, void *hc)
 }
 
 static void
-hostcache_prune(curl_hash *hostcache, int cache_timeout, int now)
+hostcache_prune(curl_hash *hostcache, int cache_timeout, time_t now)
 {
   struct hostcache_prune_data user;