diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-19 08:53:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-19 08:53:46 +0000 |
commit | ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba (patch) | |
tree | 50664649cca13e5462dadea8c9bcde81c59e07ef /src/core | |
parent | 75297c57a857d0c7c1428bed00e32ed2c8b5389d (diff) | |
download | gnunet-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')
-rw-r--r-- | src/core/core_api.c | 4 | ||||
-rw-r--r-- | src/core/core_api_iterate_peers.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index 69dcfecf8..1a4b23333 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -448,7 +448,7 @@ reconnect_later (struct GNUNET_CORE_Handle *h) | |||
448 | } | 448 | } |
449 | if (h->client != NULL) | 449 | if (h->client != NULL) |
450 | { | 450 | { |
451 | GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); | 451 | GNUNET_CLIENT_disconnect (h->client); |
452 | h->client = NULL; | 452 | h->client = NULL; |
453 | } | 453 | } |
454 | h->currently_down = GNUNET_YES; | 454 | h->currently_down = GNUNET_YES; |
@@ -1243,7 +1243,7 @@ GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle) | |||
1243 | } | 1243 | } |
1244 | if (handle->client != NULL) | 1244 | if (handle->client != NULL) |
1245 | { | 1245 | { |
1246 | GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); | 1246 | GNUNET_CLIENT_disconnect (handle->client); |
1247 | handle->client = NULL; | 1247 | handle->client = NULL; |
1248 | } | 1248 | } |
1249 | GNUNET_CONTAINER_multihashmap_iterate (handle->peers, | 1249 | GNUNET_CONTAINER_multihashmap_iterate (handle->peers, |
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 | } |