mirror of
https://github.com/curl/curl.git
synced 2026-07-29 01:33:07 +03:00
os400: make vsetopt() non-static as Curl_vsetopt() for os400 support.
Use it in curl_easy_setopt_ccsid(). Reported-by: jonrumsey on github Fixes #3833 Closes #4028
This commit is contained in:
parent
c97e8493a6
commit
ef8d98bbba
3 changed files with 9 additions and 10 deletions
|
|
@ -119,8 +119,11 @@ static CURLcode setstropt_userpwd(char *option, char **userp, char **passwdp)
|
|||
#define C_SSLVERSION_VALUE(x) (x & 0xffff)
|
||||
#define C_SSLVERSION_MAX_VALUE(x) (x & 0xffff0000)
|
||||
|
||||
static CURLcode vsetopt(struct Curl_easy *data, CURLoption option,
|
||||
va_list param)
|
||||
/*
|
||||
* Do not make Curl_vsetopt() static: it is called from
|
||||
* packages/OS400/ccsidcurl.c.
|
||||
*/
|
||||
CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
||||
{
|
||||
char *argptr;
|
||||
CURLcode result = CURLE_OK;
|
||||
|
|
@ -2770,7 +2773,7 @@ CURLcode curl_easy_setopt(struct Curl_easy *data, CURLoption tag, ...)
|
|||
|
||||
va_start(arg, tag);
|
||||
|
||||
result = vsetopt(data, tag, arg);
|
||||
result = Curl_vsetopt(data, tag, arg);
|
||||
|
||||
va_end(arg);
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue