aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-07-17 12:44:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-07-17 12:44:11 +0000
commit492290499105496458c4f76abdaef115adb0ec4c (patch)
tree6e741d705609419db0841d689d00717e5e33e73e /lib/url.c
parentdecae2dcda736d8b242e79a19f4243fdbdafd196 (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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index 9c05c803a..98662ceb9 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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);