]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
OS400: update ccsidcurl.c
authorJon Rumsey <jrumsey@uk.ibm.com>
Thu, 10 Dec 2020 09:56:36 +0000 (09:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Dec 2020 10:30:19 +0000 (11:30 +0100)
Add 'struct' to cast and declaration of cfcdata to fix compilation
error.

Fixes #6292
Closes #6297

packages/OS400/ccsidcurl.c

index 3ff923ebf0426d9fda53d8ab29f5bf71ab882567..0faa9b04c34698bd7a4dc58839ea7e2640cc0af6 100644 (file)
@@ -1058,7 +1058,7 @@ Curl_formget_callback_ccsid(void *arg, const char *buf, size_t len)
   int l;
   size_t ret;
 
-  p = (cfcdata *) arg;
+  p = (struct cfcdata *) arg;
 
   if((long) len <= 0)
     return (*p->append)(p->arg, buf, len);
@@ -1085,7 +1085,7 @@ int
 curl_formget_ccsid(struct curl_httppost *form, void *arg,
                    curl_formget_callback append, unsigned int ccsid)
 {
-  cfcdata lcfc;
+  struct cfcdata lcfc;
 
   lcfc.append = append;
   lcfc.arg = arg;