From e799762ddd6a453b725e479d65fafccc479e46c3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Sep 2010 13:13:17 +0000 Subject: [PATCH] match MHD 0.9.2 API --- src/core/gnunet-service-core.c | 2 +- src/transport/plugin_transport_http.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 5c8d8dc72..d5807ef3c 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -44,7 +44,7 @@ #define DEBUG_HANDSHAKE GNUNET_NO -#define DEBUG_CORE_QUOTA GNUNET_NO +#define DEBUG_CORE_QUOTA GNUNET_YES /** * Receive and send buffer windows grow over time. For diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 6af53332a..4389bbefc 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -819,7 +819,8 @@ mhd_accept_cb (void *cls, const struct sockaddr *addr, socklen_t addr_len) * @param max max number of bytes available in buffer * @return bytes written to buffer */ -int mhd_send_callback (void *cls, uint64_t pos, char *buf, int max) +static ssize_t +mhd_send_callback (void *cls, uint64_t pos, char *buf, size_t max) { struct Session * ps = cls; struct HTTP_PeerContext * pc; -- 2.25.1