match MHD 0.9.2 API
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 Sep 2010 13:13:17 +0000 (13:13 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 Sep 2010 13:13:17 +0000 (13:13 +0000)
src/core/gnunet-service-core.c
src/transport/plugin_transport_http.c

index 5c8d8dc72ca7ee1409143338291f656d6440822e..d5807ef3cf77678a9f34753c650869009e083884 100644 (file)
@@ -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
index 6af53332acce02f0fa00ba67a232555718bd102c..4389bbefce9a1c07e13a5629d0c1702ba7d69b2b 100644 (file)
@@ -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;