diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-09 00:29:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-09 00:29:16 +0200 |
commit | 8547143da77b0bae392758040313762eb60d7e86 (patch) | |
tree | 0e277ad44dfeb7a439df8f4d55f90688295e4e3d /src/gns | |
parent | 6fc0526b4c2ecb735cf2b697e2fbbed3c35af382 (diff) | |
download | gnunet-8547143da77b0bae392758040313762eb60d7e86.tar.gz gnunet-8547143da77b0bae392758040313762eb60d7e86.zip |
adapt code to work with latest MHD API
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-bcd.c | 5 | ||||
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/gns/gnunet-bcd.c b/src/gns/gnunet-bcd.c index d6de86fa0..6ceff4a9a 100644 --- a/src/gns/gnunet-bcd.c +++ b/src/gns/gnunet-bcd.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include <microhttpd.h> | 28 | #include <microhttpd.h> |
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_mhd_compat.h" | ||
30 | 31 | ||
31 | /** | 32 | /** |
32 | * Error page to display if submitted GNS key is invalid. | 33 | * Error page to display if submitted GNS key is invalid. |
@@ -91,7 +92,7 @@ struct Entry | |||
91 | /** | 92 | /** |
92 | * Main request handler. | 93 | * Main request handler. |
93 | */ | 94 | */ |
94 | static int | 95 | static MHD_RESULT |
95 | access_handler_callback (void *cls, | 96 | access_handler_callback (void *cls, |
96 | struct MHD_Connection *connection, | 97 | struct MHD_Connection *connection, |
97 | const char *url, | 98 | const char *url, |
@@ -153,7 +154,7 @@ access_handler_callback (void *cls, | |||
153 | struct stat st; | 154 | struct stat st; |
154 | struct MHD_Response *response; | 155 | struct MHD_Response *response; |
155 | int fd; | 156 | int fd; |
156 | int ret; | 157 | MHD_RESULT ret; |
157 | 158 | ||
158 | const char *gpg_fp = MHD_lookup_connection_value (connection, | 159 | const char *gpg_fp = MHD_lookup_connection_value (connection, |
159 | MHD_GET_ARGUMENT_KIND, | 160 | MHD_GET_ARGUMENT_KIND, |
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 5b8348d43..c0572fe40 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "gnunet_gns_service.h" | 43 | #include "gnunet_gns_service.h" |
44 | #include "gnunet_identity_service.h" | 44 | #include "gnunet_identity_service.h" |
45 | #include "gns.h" | 45 | #include "gns.h" |
46 | 46 | #include "gnunet_mhd_compat.h" | |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Default Socks5 listen port. | 49 | * Default Socks5 listen port. |
@@ -1827,7 +1827,7 @@ con_val_iter (void *cls, | |||
1827 | * #MHD_NO if the socket must be closed due to a serious | 1827 | * #MHD_NO if the socket must be closed due to a serious |
1828 | * error while handling the request | 1828 | * error while handling the request |
1829 | */ | 1829 | */ |
1830 | static int | 1830 | static MHD_RESULT |
1831 | create_response (void *cls, | 1831 | create_response (void *cls, |
1832 | struct MHD_Connection *con, | 1832 | struct MHD_Connection *con, |
1833 | const char *url, | 1833 | const char *url, |