mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:33:32 +03:00
store times in time_t
This commit is contained in:
parent
40e892bb36
commit
47afa058a8
1 changed files with 2 additions and 2 deletions
|
|
@ -184,7 +184,7 @@ create_hostcache_id(char *server, int port, size_t *entry_len)
|
||||||
|
|
||||||
struct hostcache_prune_data {
|
struct hostcache_prune_data {
|
||||||
int cache_timeout;
|
int cache_timeout;
|
||||||
int now;
|
time_t now;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
@ -205,7 +205,7 @@ hostcache_timestamp_remove(void *datap, void *hc)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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;
|
struct hostcache_prune_data user;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue