aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/largepost.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-08-14 17:10:50 +0000
committerChristian Grothoff <christian@grothoff.org>2012-08-14 17:10:50 +0000
commit300f5594b1b101d59f8772bf81442b025a0a2cd7 (patch)
tree00f3219e1e0a21a218af41c3d103d68a9a0273cc /doc/examples/largepost.c
parent15e3b096a4d41fe22a40cbbfd12e4cdc661a6f14 (diff)
downloadlibmicrohttpd-300f5594b1b101d59f8772bf81442b025a0a2cd7.tar.gz
libmicrohttpd-300f5594b1b101d59f8772bf81442b025a0a2cd7.zip
making examples compile without warnings
Diffstat (limited to 'doc/examples/largepost.c')
-rw-r--r--doc/examples/largepost.c4
1 files changed, 3 insertions, 1 deletions
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);