From 9304055df518e5b9c85bd4559fcff12b09fed0f0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 4 May 2001 07:47:11 +0000 Subject: 'FILE *' changed to 'void *' in all callback functions --- lib/url.c | 4 ++-- lib/urldata.h | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index c54cfe8d0..3fef8b651 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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) */ -- cgit v1.2.3