OS400: update ccsidcurl.c

Add 'struct' to cast and declaration of cfcdata to fix compilation
error.

Fixes #6292
Closes #6297
This commit is contained in:
Jon Rumsey 2020-12-10 09:56:36 +00:00 committed by Daniel Stenberg
parent 32793b2c4f
commit 117b94eb0b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;