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/datastore/datastore_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/datastore/datastore_api.c')
-rw-r--r-- | src/datastore/datastore_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index 4f406a2bc..f4096c665 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c | |||
@@ -321,7 +321,7 @@ GNUNET_DATASTORE_disconnect (struct GNUNET_DATASTORE_Handle *h, int drop) | |||
321 | } | 321 | } |
322 | if (h->client != NULL) | 322 | if (h->client != NULL) |
323 | { | 323 | { |
324 | GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); | 324 | GNUNET_CLIENT_disconnect (h->client); |
325 | h->client = NULL; | 325 | h->client = NULL; |
326 | } | 326 | } |
327 | if (h->reconnect_task != GNUNET_SCHEDULER_NO_TASK) | 327 | if (h->reconnect_task != GNUNET_SCHEDULER_NO_TASK) |
@@ -346,7 +346,7 @@ GNUNET_DATASTORE_disconnect (struct GNUNET_DATASTORE_Handle *h, int drop) | |||
346 | GNUNET_TIME_UNIT_MINUTES, | 346 | GNUNET_TIME_UNIT_MINUTES, |
347 | GNUNET_YES, &transmit_drop, h)) | 347 | GNUNET_YES, &transmit_drop, h)) |
348 | return; | 348 | return; |
349 | GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); | 349 | GNUNET_CLIENT_disconnect (h->client); |
350 | h->client = NULL; | 350 | h->client = NULL; |
351 | } | 351 | } |
352 | GNUNET_break (0); | 352 | GNUNET_break (0); |
@@ -540,7 +540,7 @@ do_disconnect (struct GNUNET_DATASTORE_Handle *h) | |||
540 | GNUNET_STATISTICS_update (stats, gettext_noop ("# reconnected to DATASTORE"), | 540 | GNUNET_STATISTICS_update (stats, gettext_noop ("# reconnected to DATASTORE"), |
541 | 1, GNUNET_NO); | 541 | 1, GNUNET_NO); |
542 | #endif | 542 | #endif |
543 | GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); | 543 | GNUNET_CLIENT_disconnect (h->client); |
544 | h->skip_next_messages = 0; | 544 | h->skip_next_messages = 0; |
545 | h->client = NULL; | 545 | h->client = NULL; |
546 | h->reconnect_task = | 546 | h->reconnect_task = |