aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/peerinfo_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-01-17 21:07:12 +0000
committerChristian Grothoff <christian@grothoff.org>2010-01-17 21:07:12 +0000
commit96f959b206cb03d23456630db6c9567bd0e807b2 (patch)
treee9dc495041da805e068fa15569c680bfa1ca5b6c /src/peerinfo/peerinfo_api.c
parentc549525a287501f14f7acb578b1dffd52add1b37 (diff)
downloadgnunet-96f959b206cb03d23456630db6c9567bd0e807b2.tar.gz
gnunet-96f959b206cb03d23456630db6c9567bd0e807b2.zip
fixes
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r--src/peerinfo/peerinfo_api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c
index 3ed2172db..f3479ab7b 100644
--- a/src/peerinfo/peerinfo_api.c
+++ b/src/peerinfo/peerinfo_api.c
@@ -49,10 +49,12 @@ copy_and_free (void *cls, size_t size, void *buf)
49 49
50 if (buf == NULL) 50 if (buf == NULL)
51 { 51 {
52 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 52#if DEBUG_PEERINFO
53 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
53 _ 54 _
54 ("Failed to transmit message of type %u to `%s' service.\n"), 55 ("Failed to transmit message of type %u to `%s' service.\n"),
55 ntohs (msg->type), "peerinfo"); 56 ntohs (msg->type), "peerinfo");
57#endif
56 GNUNET_free (msg); 58 GNUNET_free (msg);
57 GNUNET_CLIENT_disconnect (cc->client); 59 GNUNET_CLIENT_disconnect (cc->client);
58 GNUNET_free (cc); 60 GNUNET_free (cc);
@@ -112,7 +114,7 @@ GNUNET_PEERINFO_add_peer (const struct GNUNET_CONFIGURATION_Handle *cfg,
112 GNUNET_CLIENT_notify_transmit_ready (client, 114 GNUNET_CLIENT_notify_transmit_ready (client,
113 ntohs (pam->header.size), 115 ntohs (pam->header.size),
114 ADD_PEER_TIMEOUT, 116 ADD_PEER_TIMEOUT,
115 GNUNET_YES, 117 GNUNET_NO,
116 &copy_and_free, cc); 118 &copy_and_free, cc);
117} 119}
118 120