]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples: Fixed compilation warnings
authorSteve Holme <steve_holme@hotmail.com>
Sat, 21 Nov 2015 01:47:02 +0000 (01:47 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 21 Nov 2015 01:47:02 +0000 (01:47 +0000)
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'

docs/examples/http2-download.c
docs/examples/http2-serverpush.c
docs/examples/http2-upload.c
docs/examples/imap-multi.c
docs/examples/pop3-multi.c

index 8b065073488d4d0c2c0e40edd672a0e4e0598b7b..d4f111cf14534c3fb4e39e38b88556ed860fdfc2 100644 (file)
@@ -25,6 +25,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 /* somewhat unix-specific */
 #include <sys/time.h>
index 53c491b3a537dd5986fcfe10a8c36046a96a3112..1a27d21c3494d3cc3f101169ed9bab5669b6a2ea 100644 (file)
@@ -25,6 +25,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 /* somewhat unix-specific */
 #include <sys/time.h>
index 2ec55059afdf0c2737ac886d7ffd634b01e1f950..cc9883b5583e3d627539191d316edffd09af9100 100644 (file)
@@ -25,6 +25,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <fcntl.h>
 #include <sys/stat.h>
 
index c7dc13071338f99e7546763f3ffc90c573ef9197..dc6f8ba3c022124f560652a666ec295274dd8c1e 100644 (file)
@@ -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
index 6df09a2636de9d802df71c6234860acd5af6127f..feca2fa9b937f9e59f37c1a14b758b11c1dbc7b6 100644 (file)
@@ -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