aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api_iterate_peers.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-19 08:53:46 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-19 08:53:46 +0000
commitccc7218f3d2008d4e7ec5e222ba6b6451ec677ba (patch)
tree50664649cca13e5462dadea8c9bcde81c59e07ef /src/core/core_api_iterate_peers.c
parent75297c57a857d0c7c1428bed00e32ed2c8b5389d (diff)
downloadgnunet-ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba.tar.gz
gnunet-ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba.zip
-removing 2nd argument from GNUNET_CLIENT_disconnect as it was virtually always GNUNET_NO --- and all other uses indicate design problems
Diffstat (limited to 'src/core/core_api_iterate_peers.c')
-rw-r--r--src/core/core_api_iterate_peers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c
index 7b28842fd..0ecd98ed7 100644
--- a/src/core/core_api_iterate_peers.c
+++ b/src/core/core_api_iterate_peers.c
@@ -80,7 +80,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
80 { 80 {
81 if (request_context->peer_cb != NULL) 81 if (request_context->peer_cb != NULL)
82 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0); 82 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0);
83 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO); 83 GNUNET_CLIENT_disconnect (request_context->client);
84 GNUNET_free (request_context); 84 GNUNET_free (request_context);
85 return; 85 return;
86 } 86 }
@@ -93,7 +93,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
93 GNUNET_break (0); 93 GNUNET_break (0);
94 if (request_context->peer_cb != NULL) 94 if (request_context->peer_cb != NULL)
95 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0); 95 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0);
96 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO); 96 GNUNET_CLIENT_disconnect (request_context->client);
97 GNUNET_free (request_context); 97 GNUNET_free (request_context);
98 return; 98 return;
99 } 99 }
@@ -106,7 +106,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
106 GNUNET_break (0); 106 GNUNET_break (0);
107 if (request_context->peer_cb != NULL) 107 if (request_context->peer_cb != NULL)
108 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0); 108 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0);
109 GNUNET_CLIENT_disconnect (request_context->client, GNUNET_NO); 109 GNUNET_CLIENT_disconnect (request_context->client);
110 GNUNET_free (request_context); 110 GNUNET_free (request_context);
111 return; 111 return;
112 } 112 }