From 13dc2f9e3102d6615ba6cf38fdbc235507ed5d24 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 29 Nov 2011 18:17:42 -0600 Subject: [PATCH] FS-2936 stage 5 handle varargs right --- src/switch_curl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/switch_curl.c b/src/switch_curl.c index 1a3035a6d6..243f966ce2 100644 --- a/src/switch_curl.c +++ b/src/switch_curl.c @@ -1,6 +1,8 @@ #include #include +CURLcode Curl_setopt(switch_CURL *curl, CURLoption option, va_list arg); + SWITCH_DECLARE(switch_CURL *) switch_curl_easy_init(void) { @@ -19,7 +21,7 @@ SWITCH_DECLARE(switch_CURLcode) switch_curl_easy_getinfo(switch_CURL *curl, swit switch_CURLcode code; va_start(ap, info); - code = curl_easy_getinfo(curl, info, ap); + code = curl_easy_getinfo(curl, info, va_arg(ap, void *)); va_end(ap); return code; @@ -51,7 +53,7 @@ SWITCH_DECLARE(switch_CURLcode) switch_curl_easy_setopt(CURL *handle, switch_CUR switch_CURLcode code; va_start(ap, option); - code = curl_easy_setopt(handle, option, ap); + code = Curl_setopt(handle, option, ap); va_end(ap); return code;