aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSterling Hughes <sterling@bumblebury.com>2002-01-08 04:30:59 +0000
committerSterling Hughes <sterling@bumblebury.com>2002-01-08 04:30:59 +0000
commitc0bfe7be15debd3ed5f061990a14929b1ffba39f (patch)
treef0146d897cb80371ef9b40669fe04d181c010e4b /lib
parent22ac08e06db32cb2a7872316a669eb81ec3ea204 (diff)
1) the dns_cache_timeout should be an integer, not a bool
2) in the curl_dns_cache_entry structure, timestamp should be a time_t instead of an integer (although I doubt it matters).
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
-rw-r--r--lib/urldata.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index fc76242f7..a4ef642b6 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -95,7 +95,7 @@ void Curl_global_host_cache_dtor(void)
struct curl_dns_cache_entry {
Curl_addrinfo *addr;
- int timestamp;
+ time_t timestamp;
};
Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
diff --git a/lib/urldata.h b/lib/urldata.h
index 64ee821ca..727fd5b18 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -617,6 +617,8 @@ struct UserDefined {
char *krb4_level; /* what security level */
struct ssl_config_data ssl; /* user defined SSL stuff */
+ int dns_cache_timeout; /* DNS cache timeout */
+
/* Here follows boolean settings that define how to behave during
this session. They are STATIC, set by libcurl users or at least initially
and they don't change during operations. */
@@ -647,7 +649,6 @@ struct UserDefined {
bool ftp_use_epsv; /* if EPSV is to be attempted or not */
bool global_dns_cache;
- bool dns_cache_timeout;
};
/*