@@ -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
@@ -1,6 +1,9 @@
+#include <stdlib.h>
@@ -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);
@@ -2,6 +2,7 @@
@@ -6,6 +6,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#define FILENAME "picture.png"
@@ -2,6 +2,9 @@
#define POSTBUFFERSIZE 512