Skip to content

Commit

Permalink
OS400: update ccsidcurl.c
Browse files Browse the repository at this point in the history
Add 'struct' to cast and declaration of cfcdata to fix compilation
error.

Fixes #6292
Closes #6297
  • Loading branch information
jonrumsey authored and bagder committed Dec 10, 2020
1 parent 32793b2 commit 117b94e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/OS400/ccsidcurl.c
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 117b94e

Please sign in to comment.