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/nse/nse_api.c | |
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/nse/nse_api.c')
-rw-r--r-- | src/nse/nse_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nse/nse_api.c b/src/nse/nse_api.c index 4d5f6bb71..2fa8af2e5 100644 --- a/src/nse/nse_api.c +++ b/src/nse/nse_api.c | |||
@@ -106,7 +106,7 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
106 | if (msg == NULL) | 106 | if (msg == NULL) |
107 | { | 107 | { |
108 | /* Error, timeout, death */ | 108 | /* Error, timeout, death */ |
109 | GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); | 109 | GNUNET_CLIENT_disconnect (h->client); |
110 | h->client = NULL; | 110 | h->client = NULL; |
111 | h->reconnect_task = | 111 | h->reconnect_task = |
112 | GNUNET_SCHEDULER_add_delayed (h->reconnect_delay, &reconnect, h); | 112 | GNUNET_SCHEDULER_add_delayed (h->reconnect_delay, &reconnect, h); |
@@ -145,7 +145,7 @@ reschedule_connect (struct GNUNET_NSE_Handle *h) | |||
145 | } | 145 | } |
146 | if (NULL != h->client) | 146 | if (NULL != h->client) |
147 | { | 147 | { |
148 | GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); | 148 | GNUNET_CLIENT_disconnect (h->client); |
149 | h->client = NULL; | 149 | h->client = NULL; |
150 | } | 150 | } |
151 | 151 | ||
@@ -289,7 +289,7 @@ GNUNET_NSE_disconnect (struct GNUNET_NSE_Handle *h) | |||
289 | } | 289 | } |
290 | if (h->client != NULL) | 290 | if (h->client != NULL) |
291 | { | 291 | { |
292 | GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); | 292 | GNUNET_CLIENT_disconnect (h->client); |
293 | h->client = NULL; | 293 | h->client = NULL; |
294 | } | 294 | } |
295 | GNUNET_free (h); | 295 | GNUNET_free (h); |