aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/minimal_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/minimal_example.c')
-rw-r--r--src/daemon/minimal_example.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/daemon/minimal_example.c b/src/daemon/minimal_example.c
index 5e67b981..10b54aac 100644
--- a/src/daemon/minimal_example.c
+++ b/src/daemon/minimal_example.c
@@ -35,12 +35,6 @@
35 35
36#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd demo</body></html>" 36#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd demo</body></html>"
37 37
38static int apc_all(void * cls,
39 const struct sockaddr * addr,
40 socklen_t addrlen) {
41 return MHD_YES;
42}
43
44static int ahc_echo(void * cls, 38static int ahc_echo(void * cls,
45 struct MHD_Connection * connection, 39 struct MHD_Connection * connection,
46 const char * url, 40 const char * url,
@@ -76,7 +70,7 @@ int main(int argc,
76 } 70 }
77 d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 71 d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG,
78 atoi(argv[1]), 72 atoi(argv[1]),
79 &apc_all, 73 NULL,
80 NULL, 74 NULL,
81 &ahc_echo, 75 &ahc_echo,
82 PAGE, 76 PAGE,