diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-07-17 12:44:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-07-17 12:44:11 +0000 |
commit | 492290499105496458c4f76abdaef115adb0ec4c (patch) | |
tree | 6e741d705609419db0841d689d00717e5e33e73e /lib/url.c | |
parent | decae2dcda736d8b242e79a19f4243fdbdafd196 (diff) |
Simplified the code within curl_easy_perform() that calls Curl_perform().
Pointed out by Bjorn Reese.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -372,14 +372,12 @@ CURLcode Curl_open(struct SessionHandle **curl) return CURLE_OK; } -CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) +CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, + va_list param) { - va_list param; char *argptr; CURLcode result = CURLE_OK; - va_start(param, option); - switch(option) { case CURLOPT_DNS_CACHE_TIMEOUT: data->set.dns_cache_timeout = va_arg(param, int); |