aboutsummaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2019-06-16 01:05:53 +0200
committerPatrick Monnerat <patrick@monnerat.net>2019-06-16 01:05:53 +0200
commitef8d98bbbab0ca083aa179bd595aab39019ec8de (patch)
tree6dfb374430da3e4ec0a09f4280b8c4e55ca43832 /lib/setopt.c
parentc97e8493a629d7d2087197a7be8dd0dbc22f90ec (diff)
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
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 92cd5b271..bdfe86ac7 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -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;