aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/httpput.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-07-16 21:22:12 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-07-16 21:22:12 +0000
commit4706a9334149f656eef9b5e8888da1ead23b0941 (patch)
tree913c6506b908fd3c42b7aaf1b39f014fd99adf36 /docs/examples/httpput.c
parentb85b56a73d46a4842daae280a85eb60c7e675796 (diff)
Fixed some more simple compile warnings in the examples.
Diffstat (limited to 'docs/examples/httpput.c')
-rw-r--r--docs/examples/httpput.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c
index 8fd423c7d..5b92548a5 100644
--- a/docs/examples/httpput.c
+++ b/docs/examples/httpput.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
+#include <unistd.h>
#include <curl/curl.h>
@@ -24,7 +25,7 @@
* http://www.apacheweek.com/features/put
*/
-size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
+static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
{
size_t retcode;