gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r23234 - libmicrohttpd/doc/examples


From: gnunet
Subject: [GNUnet-SVN] r23234 - libmicrohttpd/doc/examples
Date: Tue, 14 Aug 2012 19:10:50 +0200

Author: grothoff
Date: 2012-08-14 19:10:50 +0200 (Tue, 14 Aug 2012)
New Revision: 23234

Modified:
   libmicrohttpd/doc/examples/hellobrowser.c
   libmicrohttpd/doc/examples/largepost.c
   libmicrohttpd/doc/examples/logging.c
   libmicrohttpd/doc/examples/responseheaders.c
   libmicrohttpd/doc/examples/simplepost.c
   libmicrohttpd/doc/examples/tlsauthentication.c
Log:
making examples compile without warnings

Modified: libmicrohttpd/doc/examples/hellobrowser.c
===================================================================
--- libmicrohttpd/doc/examples/hellobrowser.c   2012-08-14 16:54:17 UTC (rev 
23233)
+++ libmicrohttpd/doc/examples/hellobrowser.c   2012-08-14 17:10:50 UTC (rev 
23234)
@@ -1,7 +1,9 @@
 #include <sys/types.h>
 #include <sys/select.h>
 #include <sys/socket.h>
+#include <string.h>
 #include <microhttpd.h>
+#include <stdio.h>
 
 #define PORT 8888
 

Modified: libmicrohttpd/doc/examples/largepost.c
===================================================================
--- libmicrohttpd/doc/examples/largepost.c      2012-08-14 16:54:17 UTC (rev 
23233)
+++ libmicrohttpd/doc/examples/largepost.c      2012-08-14 17:10:50 UTC (rev 
23234)
@@ -1,6 +1,9 @@
 #include <sys/types.h>
 #include <sys/select.h>
 #include <sys/socket.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <microhttpd.h>
 
 #define PORT            8888
@@ -178,7 +181,6 @@
 
   if (0 == strcmp (method, "GET"))
     {
-      int ret;
       char buffer[1024];
 
       sprintf (buffer, askpage, nr_of_uploading_clients);

Modified: libmicrohttpd/doc/examples/logging.c
===================================================================
--- libmicrohttpd/doc/examples/logging.c        2012-08-14 16:54:17 UTC (rev 
23233)
+++ libmicrohttpd/doc/examples/logging.c        2012-08-14 17:10:50 UTC (rev 
23234)
@@ -2,6 +2,7 @@
 #include <sys/select.h>
 #include <sys/socket.h>
 #include <microhttpd.h>
+#include <stdio.h>
 
 #define PORT 8888
 

Modified: libmicrohttpd/doc/examples/responseheaders.c
===================================================================
--- libmicrohttpd/doc/examples/responseheaders.c        2012-08-14 16:54:17 UTC 
(rev 23233)
+++ libmicrohttpd/doc/examples/responseheaders.c        2012-08-14 17:10:50 UTC 
(rev 23234)
@@ -6,6 +6,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <string.h>
+#include <stdio.h>
 
 #define PORT 8888
 #define FILENAME "picture.png"

Modified: libmicrohttpd/doc/examples/simplepost.c
===================================================================
--- libmicrohttpd/doc/examples/simplepost.c     2012-08-14 16:54:17 UTC (rev 
23233)
+++ libmicrohttpd/doc/examples/simplepost.c     2012-08-14 17:10:50 UTC (rev 
23234)
@@ -2,6 +2,9 @@
 #include <sys/select.h>
 #include <sys/socket.h>
 #include <microhttpd.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 
 #define PORT            8888
 #define POSTBUFFERSIZE  512

Modified: libmicrohttpd/doc/examples/tlsauthentication.c
===================================================================
--- libmicrohttpd/doc/examples/tlsauthentication.c      2012-08-14 16:54:17 UTC 
(rev 23233)
+++ libmicrohttpd/doc/examples/tlsauthentication.c      2012-08-14 17:10:50 UTC 
(rev 23234)
@@ -2,6 +2,9 @@
 #include <sys/select.h>
 #include <sys/socket.h>
 #include <microhttpd.h>
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
 
 #define PORT 8888
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]