diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-03-17 12:38:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-03-17 12:38:08 +0000 |
commit | 5334a58f9bd177961dc55485dcc98353244db5d0 (patch) | |
tree | 35cb712c75f79dbd00f7291f31e827b57af84ca2 | |
parent | 2616bdc4cd782008c16cc807aa75267b6fd8d582 (diff) |
Andy Cedilnik's corrections
-rw-r--r-- | docs/examples/ftpupload.c | 3 | ||||
-rw-r--r-- | docs/examples/sepheaders.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index 5b430e648..dee44c4ab 100644 --- a/docs/examples/ftpupload.c +++ b/docs/examples/ftpupload.c @@ -11,6 +11,9 @@ #include <stdio.h> #include <curl/curl.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> /* * This example shows an FTP upload, with a rename of the file just after diff --git a/docs/examples/sepheaders.c b/docs/examples/sepheaders.c index 3f4eb5cf4..7168f8016 100644 --- a/docs/examples/sepheaders.c +++ b/docs/examples/sepheaders.c @@ -21,7 +21,7 @@ size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream) { - written = fwrite(ptr, size, nmemb, (FILE *)stream); + int written = fwrite(ptr, size, nmemb, (FILE *)stream); return written; } |