aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c4
-rw-r--r--lib/urldata.h7
2 files changed, 6 insertions, 5 deletions
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) */