summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-11-21 01:47:02 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-11-21 01:47:02 +0000
commitc90e3485795f561e38cd67f64892a37788fa14dc (patch)
tree10b993651961962d1ee73ee8823bb6dc093a1ce9
parentf024ece8c719c8f943ffec8e405eabbd1178446f (diff)
downloadcurl-c90e3485795f561e38cd67f64892a37788fa14dc.tar.gz
examples: Fixed compilation warnings
pop3-multi.c:96:5: warning: implicit declaration of function 'memset' imap-multi.c:96:5: warning: implicit declaration of function 'memset' http2-download.c:226:5: warning: implicit declaration of function 'memset' http2-upload.c:290:5: warning: implicit declaration of function 'memset' http2-upload.c:290:5: warning: implicit declaration of function 'memset'
-rw-r--r--docs/examples/http2-download.c1
-rw-r--r--docs/examples/http2-serverpush.c1
-rw-r--r--docs/examples/http2-upload.c1
-rw-r--r--docs/examples/imap-multi.c3
-rw-r--r--docs/examples/pop3-multi.c3
5 files changed, 7 insertions, 2 deletions
diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c
index 8b0650734..d4f111cf1 100644
--- a/docs/examples/http2-download.c
+++ b/docs/examples/http2-download.c
@@ -25,6 +25,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
/* somewhat unix-specific */
#include <sys/time.h>
diff --git a/docs/examples/http2-serverpush.c b/docs/examples/http2-serverpush.c
index 53c491b3a..1a27d21c3 100644
--- a/docs/examples/http2-serverpush.c
+++ b/docs/examples/http2-serverpush.c
@@ -25,6 +25,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
/* somewhat unix-specific */
#include <sys/time.h>
diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c
index 2ec55059a..cc9883b55 100644
--- a/docs/examples/http2-upload.c
+++ b/docs/examples/http2-upload.c
@@ -25,6 +25,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
diff --git a/docs/examples/imap-multi.c b/docs/examples/imap-multi.c
index c7dc13071..dc6f8ba3c 100644
--- a/docs/examples/imap-multi.c
+++ b/docs/examples/imap-multi.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -20,6 +20,7 @@
*
***************************************************************************/
#include <stdio.h>
+#include <string.h>
#include <curl/curl.h>
/* This is a simple example showing how to fetch mail using libcurl's IMAP
diff --git a/docs/examples/pop3-multi.c b/docs/examples/pop3-multi.c
index 6df09a263..feca2fa9b 100644
--- a/docs/examples/pop3-multi.c
+++ b/docs/examples/pop3-multi.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -20,6 +20,7 @@
*
***************************************************************************/
#include <stdio.h>
+#include <string.h>
#include <curl/curl.h>
/* This is a simple example showing how to retrieve mail using libcurl's POP3