diff options
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist_server.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_server.c b/src/hostlist/gnunet-daemon-hostlist_server.c index b2b7dac72..999730e3e 100644 --- a/src/hostlist/gnunet-daemon-hostlist_server.c +++ b/src/hostlist/gnunet-daemon-hostlist_server.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "gnunet_peerinfo_service.h" | 32 | #include "gnunet_peerinfo_service.h" |
33 | #include "gnunet-daemon-hostlist.h" | 33 | #include "gnunet-daemon-hostlist.h" |
34 | #include "gnunet_resolver_service.h" | 34 | #include "gnunet_resolver_service.h" |
35 | #include "gnunet_mhd_compat.h" | ||
35 | 36 | ||
36 | 37 | ||
37 | /** | 38 | /** |
@@ -294,7 +295,7 @@ host_processor (void *cls, | |||
294 | * @param addrlen length of @a addr | 295 | * @param addrlen length of @a addr |
295 | * @return #MHD_YES if connection is allowed, #MHD_NO if not (we are not ready) | 296 | * @return #MHD_YES if connection is allowed, #MHD_NO if not (we are not ready) |
296 | */ | 297 | */ |
297 | static int | 298 | static MHD_RESULT |
298 | accept_policy_callback (void *cls, | 299 | accept_policy_callback (void *cls, |
299 | const struct sockaddr *addr, | 300 | const struct sockaddr *addr, |
300 | socklen_t addrlen) | 301 | socklen_t addrlen) |
@@ -345,7 +346,7 @@ accept_policy_callback (void *cls, | |||
345 | * #MHD_NO if the socket must be closed due to a serios | 346 | * #MHD_NO if the socket must be closed due to a serios |
346 | * error while handling the request | 347 | * error while handling the request |
347 | */ | 348 | */ |
348 | static int | 349 | static MHD_RESULT |
349 | access_handler_callback (void *cls, | 350 | access_handler_callback (void *cls, |
350 | struct MHD_Connection *connection, | 351 | struct MHD_Connection *connection, |
351 | const char *url, | 352 | const char *url, |