diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-05-04 07:47:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-05-04 07:47:11 +0000 |
commit | 9304055df518e5b9c85bd4559fcff12b09fed0f0 (patch) | |
tree | 05a790142b0ed38f31cc9c961cf3ea586f6e1347 /lib | |
parent | 53e0c1b1a6f9cab14cbf767d4b6bd8e05616f0c7 (diff) |
'FILE *' changed to 'void *' in all callback functions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 4 | ||||
-rw-r--r-- | lib/urldata.h | 7 |
2 files changed, 6 insertions, 5 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; diff --git a/lib/urldata.h b/lib/urldata.h index 8a0c1f19b..a0580975d 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -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) */ |