aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-03-17 12:38:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-03-17 12:38:08 +0000
commit5334a58f9bd177961dc55485dcc98353244db5d0 (patch)
tree35cb712c75f79dbd00f7291f31e827b57af84ca2
parent2616bdc4cd782008c16cc807aa75267b6fd8d582 (diff)
Andy Cedilnik's corrections
-rw-r--r--docs/examples/ftpupload.c3
-rw-r--r--docs/examples/sepheaders.c2
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;
}