From bb1f6e681830aba56db14c84512af371877f8601 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Fri, 10 Oct 2008 15:54:07 +0000 Subject: _ Adapt OS400 EBCDIC wrappers to new options. _ Update RPG binding accordingly. _ Fix new options comments. --- packages/OS400/ccsidcurl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/OS400/ccsidcurl.c') diff --git a/packages/OS400/ccsidcurl.c b/packages/OS400/ccsidcurl.c index 9694a345c..0530b5232 100644 --- a/packages/OS400/ccsidcurl.c +++ b/packages/OS400/ccsidcurl.c @@ -728,7 +728,7 @@ curl_formadd_ccsid(struct curl_httppost * * httppost, /* Allocate the local curl_forms array. */ lformlen = ALLOC_GRANULE; - lforms = malloc(lformlen * sizeof(struct curl_forms)); + lforms = malloc(lformlen * sizeof *lforms); if (!lforms) return CURL_FORMADD_MEMORY; @@ -1030,7 +1030,7 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...) if (testwarn) { testwarn = 0; - if ((int) STRING_LAST != (int) STRING_SSL_ISSUERCERT + 1) + if ((int) STRING_LAST != (int) STRING_PASSWORD + 1) curl_mfprintf(stderr, "*** WARNING: curl_easy_setopt_ccsid() should be reworked ***\n"); } @@ -1075,6 +1075,8 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...) case CURLOPT_SSH_HOST_PUBLIC_KEY_MD5: case CURLOPT_CRLFILE: case CURLOPT_ISSUERCERT: + case CURLOPT_USERNAME: + case CURLOPT_PASSWORD: s = va_arg(arg, char *); ccsid = va_arg(arg, unsigned int); -- cgit v1.2.3