aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-09 00:29:16 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-09 00:29:16 +0200
commit8547143da77b0bae392758040313762eb60d7e86 (patch)
tree0e277ad44dfeb7a439df8f4d55f90688295e4e3d /src/namestore
parent6fc0526b4c2ecb735cf2b697e2fbbed3c35af382 (diff)
downloadgnunet-8547143da77b0bae392758040313762eb60d7e86.tar.gz
gnunet-8547143da77b0bae392758040313762eb60d7e86.zip
adapt code to work with latest MHD API
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/gnunet-namestore-fcfsd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/namestore/gnunet-namestore-fcfsd.c b/src/namestore/gnunet-namestore-fcfsd.c
index fa0f835d1..67fc5bdf4 100644
--- a/src/namestore/gnunet-namestore-fcfsd.c
+++ b/src/namestore/gnunet-namestore-fcfsd.c
@@ -36,6 +36,7 @@
36#include "gnunet_identity_service.h" 36#include "gnunet_identity_service.h"
37#include "gnunet_gnsrecord_lib.h" 37#include "gnunet_gnsrecord_lib.h"
38#include "gnunet_namestore_service.h" 38#include "gnunet_namestore_service.h"
39#include "gnunet_mhd_compat.h"
39 40
40/** 41/**
41 * Invalid method page. 42 * Invalid method page.
@@ -507,10 +508,10 @@ fill_s_reply (const char *info,
507 * specified offset 508 * specified offset
508 * @param off offset of data in the overall value 509 * @param off offset of data in the overall value
509 * @param size number of bytes in data available 510 * @param size number of bytes in data available
510 * @return MHD_YES to continue iterating, 511 * @return #MHD_YES to continue iterating,
511 * MHD_NO to abort the iteration 512 * #MHD_NO to abort the iteration
512 */ 513 */
513static int 514static MHD_RESULT
514post_iterator (void *cls, 515post_iterator (void *cls,
515 enum MHD_ValueKind kind, 516 enum MHD_ValueKind kind,
516 const char *key, 517 const char *key,
@@ -754,7 +755,7 @@ lookup_it_finished (void *cls)
754 * #MHD_NO if the socket must be closed due to a serious 755 * #MHD_NO if the socket must be closed due to a serious
755 * error while handling the request 756 * error while handling the request
756 */ 757 */
757static int 758static MHD_RESULT
758create_response (void *cls, 759create_response (void *cls,
759 struct MHD_Connection *connection, 760 struct MHD_Connection *connection,
760 const char *url, 761 const char *url,
@@ -767,7 +768,7 @@ create_response (void *cls,
767 struct MHD_Response *response; 768 struct MHD_Response *response;
768 struct Request *request; 769 struct Request *request;
769 struct GNUNET_CRYPTO_EcdsaPublicKey pub; 770 struct GNUNET_CRYPTO_EcdsaPublicKey pub;
770 int ret; 771 MHD_RESULT ret;
771 772
772 (void) cls; 773 (void) cls;
773 (void) version; 774 (void) version;