diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-17 21:07:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-17 21:07:12 +0000 |
commit | 96f959b206cb03d23456630db6c9567bd0e807b2 (patch) | |
tree | e9dc495041da805e068fa15569c680bfa1ca5b6c /src/peerinfo/peerinfo_api.c | |
parent | c549525a287501f14f7acb578b1dffd52add1b37 (diff) | |
download | gnunet-96f959b206cb03d23456630db6c9567bd0e807b2.tar.gz gnunet-96f959b206cb03d23456630db6c9567bd0e807b2.zip |
fixes
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 6 |
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 | ©_and_free, cc); | 118 | ©_and_free, cc); |
117 | } | 119 | } |
118 | 120 | ||