aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/httpput.c
diff options
context:
space:
mode:
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;