aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/examples/hellobrowser.c2
-rw-r--r--doc/examples/largepost.c4
-rw-r--r--doc/examples/logging.c1
-rw-r--r--doc/examples/responseheaders.c1
-rw-r--r--doc/examples/simplepost.c3
-rw-r--r--doc/examples/tlsauthentication.c3
6 files changed, 13 insertions, 1 deletions
diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c
index ec4ede78..58795ca5 100644
--- a/doc/examples/hellobrowser.c
+++ b/doc/examples/hellobrowser.c
@@ -1,7 +1,9 @@
1#include <sys/types.h> 1#include <sys/types.h>
2#include <sys/select.h> 2#include <sys/select.h>
3#include <sys/socket.h> 3#include <sys/socket.h>
4#include <string.h>
4#include <microhttpd.h> 5#include <microhttpd.h>
6#include <stdio.h>
5 7
6#define PORT 8888 8#define PORT 8888
7 9
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c
index df36f1e9..d6dbf9dd 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -1,6 +1,9 @@
1#include <sys/types.h> 1#include <sys/types.h>
2#include <sys/select.h> 2#include <sys/select.h>
3#include <sys/socket.h> 3#include <sys/socket.h>
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
4#include <microhttpd.h> 7#include <microhttpd.h>
5 8
6#define PORT 8888 9#define PORT 8888
@@ -178,7 +181,6 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
178 181
179 if (0 == strcmp (method, "GET")) 182 if (0 == strcmp (method, "GET"))
180 { 183 {
181 int ret;
182 char buffer[1024]; 184 char buffer[1024];
183 185
184 sprintf (buffer, askpage, nr_of_uploading_clients); 186 sprintf (buffer, askpage, nr_of_uploading_clients);
diff --git a/doc/examples/logging.c b/doc/examples/logging.c
index 03d79520..180a9c5c 100644
--- a/doc/examples/logging.c
+++ b/doc/examples/logging.c
@@ -2,6 +2,7 @@
2#include <sys/select.h> 2#include <sys/select.h>
3#include <sys/socket.h> 3#include <sys/socket.h>
4#include <microhttpd.h> 4#include <microhttpd.h>
5#include <stdio.h>
5 6
6#define PORT 8888 7#define PORT 8888
7 8
diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c
index 5b16974f..6108ed97 100644
--- a/doc/examples/responseheaders.c
+++ b/doc/examples/responseheaders.c
@@ -6,6 +6,7 @@
6#include <sys/stat.h> 6#include <sys/stat.h>
7#include <fcntl.h> 7#include <fcntl.h>
8#include <string.h> 8#include <string.h>
9#include <stdio.h>
9 10
10#define PORT 8888 11#define PORT 8888
11#define FILENAME "picture.png" 12#define FILENAME "picture.png"
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c
index 1bf2885b..eb0fde04 100644
--- a/doc/examples/simplepost.c
+++ b/doc/examples/simplepost.c
@@ -2,6 +2,9 @@
2#include <sys/select.h> 2#include <sys/select.h>
3#include <sys/socket.h> 3#include <sys/socket.h>
4#include <microhttpd.h> 4#include <microhttpd.h>
5#include <stdio.h>
6#include <string.h>
7#include <stdlib.h>
5 8
6#define PORT 8888 9#define PORT 8888
7#define POSTBUFFERSIZE 512 10#define POSTBUFFERSIZE 512
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
index 01006d50..aefc7e75 100644
--- a/doc/examples/tlsauthentication.c
+++ b/doc/examples/tlsauthentication.c
@@ -2,6 +2,9 @@
2#include <sys/select.h> 2#include <sys/select.h>
3#include <sys/socket.h> 3#include <sys/socket.h>
4#include <microhttpd.h> 4#include <microhttpd.h>
5#include <string.h>
6#include <stdio.h>
7#include <stdlib.h>
5 8
6#define PORT 8888 9#define PORT 8888
7 10