mirror of
https://github.com/curl/curl.git
synced 2026-08-02 17:30:29 +03:00
'FILE *' changed to 'void *' in all callback functions
This commit is contained in:
parent
53e0c1b1a6
commit
9304055df5
6 changed files with 59 additions and 59 deletions
|
|
@ -216,10 +216,10 @@ CURLcode Curl_open(CURL **curl, char *url)
|
|||
data->err = stderr; /* default stderr to stderr */
|
||||
|
||||
/* use fwrite as default function to store output */
|
||||
data->fwrite = (size_t (*)(char *, size_t, size_t, FILE *))fwrite;
|
||||
data->fwrite = (curl_write_callback)fwrite;
|
||||
|
||||
/* use fread as default function to read input */
|
||||
data->fread = (size_t (*)(char *, size_t, size_t, FILE *))fread;
|
||||
data->fread = (curl_read_callback)fread;
|
||||
|
||||
/* set the default passwd function */
|
||||
data->fpasswd = my_getpass;
|
||||
|
|
|
|||
|
|
@ -456,9 +456,10 @@ struct UrlData {
|
|||
long header_size; /* size of read header(s) in bytes */
|
||||
long request_size; /* the amount of bytes sent in the request(s) */
|
||||
|
||||
FILE *out; /* the fetched file goes here */
|
||||
FILE *in; /* the uploaded file is read from here */
|
||||
FILE *writeheader; /* write the header to this is non-NULL */
|
||||
void *out; /* the fetched file goes here */
|
||||
void *in; /* the uploaded file is read from here */
|
||||
void *writeheader; /* write the header to this is non-NULL */
|
||||
|
||||
char *url; /* what to get */
|
||||
char *freethis; /* if non-NULL, an allocated string for the URL */
|
||||
long use_port; /* which port to use (when not using default) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue