summaryrefslogtreecommitdiff
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 @@
#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd demo</body></html>"
-static int apc_all(void * cls,
- const struct sockaddr * addr,
- socklen_t addrlen) {
- return MHD_YES;
-}
-
static int ahc_echo(void * cls,
struct MHD_Connection * connection,
const char * url,
@@ -76,7 +70,7 @@ int main(int argc,
}
d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG,
atoi(argv[1]),
- &apc_all,
+ NULL,
NULL,
&ahc_echo,
PAGE,