/* Prune the DNS cache. This assumes that a lock has already been taken.  */
static void hostcache_prune(struct curl_hash *hostcache, long cache_timeout, time_t now)
/* Prune the DNS cache. This assumes that a lock has already been taken.  */
static void hostcache_prune(struct curl_hash *hostcache, long cache_timeout, time_t now)
{
  struct hostcache_prune_data user;
  user.cache_timeout = cache_timeout;
  user.now = now;
  Curl_hash_clean_with_criterium(hostcache,
                                 (void *) &user,
                                 hostcache_timestamp_remove);
}