libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 300f5594b1b101d59f8772bf81442b025a0a2cd7
parent 15e3b096a4d41fe22a40cbbfd12e4cdc661a6f14
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 14 Aug 2012 17:10:50 +0000

making examples compile without warnings

Diffstat:
Mdoc/examples/hellobrowser.c | 2++
Mdoc/examples/largepost.c | 4+++-
Mdoc/examples/logging.c | 1+
Mdoc/examples/responseheaders.c | 1+
Mdoc/examples/simplepost.c | 3+++
Mdoc/examples/tlsauthentication.c | 3+++
6 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c @@ -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 diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c @@ -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 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, if (0 == strcmp (method, "GET")) { - int ret; char buffer[1024]; sprintf (buffer, askpage, nr_of_uploading_clients); diff --git a/doc/examples/logging.c b/doc/examples/logging.c @@ -2,6 +2,7 @@ #include <sys/select.h> #include <sys/socket.h> #include <microhttpd.h> +#include <stdio.h> #define PORT 8888 diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c @@ -6,6 +6,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <string.h> +#include <stdio.h> #define PORT 8888 #define FILENAME "picture.png" diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c @@ -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 diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c @@ -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