mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
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:
parent
32793b2c4f
commit
117b94eb0b
@ -1058,7 +1058,7 @@ Curl_formget_callback_ccsid(void *arg, const char *buf, size_t len)
|
|||||||
int l;
|
int l;
|
||||||
size_t ret;
|
size_t ret;
|
||||||
|
|
||||||
p = (cfcdata *) arg;
|
p = (struct cfcdata *) arg;
|
||||||
|
|
||||||
if((long) len <= 0)
|
if((long) len <= 0)
|
||||||
return (*p->append)(p->arg, buf, len);
|
return (*p->append)(p->arg, buf, len);
|
||||||
@ -1085,7 +1085,7 @@ int
|
|||||||
curl_formget_ccsid(struct curl_httppost *form, void *arg,
|
curl_formget_ccsid(struct curl_httppost *form, void *arg,
|
||||||
curl_formget_callback append, unsigned int ccsid)
|
curl_formget_callback append, unsigned int ccsid)
|
||||||
{
|
{
|
||||||
cfcdata lcfc;
|
struct cfcdata lcfc;
|
||||||
|
|
||||||
lcfc.append = append;
|
lcfc.append = append;
|
||||||
lcfc.arg = arg;
|
lcfc.arg = arg;
|
||||||
|
Loading…
Reference in New Issue
Block a user