From 49ce3e5160a9576e797bf87cef012b09d1c54ecb Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 12 Jul 2007 21:11:10 +0000 Subject: Fixed some compile warnings and errors and improved portability in the examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer. --- docs/examples/sepheaders.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/sepheaders.c') diff --git a/docs/examples/sepheaders.c b/docs/examples/sepheaders.c index cf2f419d6..e35aebfb1 100644 --- a/docs/examples/sepheaders.c +++ b/docs/examples/sepheaders.c @@ -25,9 +25,9 @@ size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream) int main(int argc, char **argv) { CURL *curl_handle; - char *headerfilename = "head.out"; + static const char *headerfilename = "head.out"; FILE *headerfile; - char *bodyfilename = "body.out"; + static const char *bodyfilename = "body.out"; FILE *bodyfile; curl_global_init(CURL_GLOBAL_ALL); -- cgit v1.2.3