aboutsummaryrefslogtreecommitdiff
path: root/src/ats
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/ats
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/ats')
-rw-r--r--src/ats/ats_api_performance.c4
-rw-r--r--src/ats/ats_api_scheduling.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c
index 848c7ec4d..c98e1c243 100644
--- a/src/ats/ats_api_performance.c
+++ b/src/ats/ats_api_performance.c
@@ -395,7 +395,7 @@ process_ats_message (void *cls, const struct GNUNET_MessageHeader *msg)
395 GNUNET_TIME_UNIT_FOREVER_REL); 395 GNUNET_TIME_UNIT_FOREVER_REL);
396 return; 396 return;
397reconnect: 397reconnect:
398 GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO); 398 GNUNET_CLIENT_disconnect (ph->client);
399 ph->client = NULL; 399 ph->client = NULL;
400 ph->task = 400 ph->task =
401 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect_task, 401 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect_task,
@@ -493,7 +493,7 @@ GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph)
493 } 493 }
494 if (NULL != ph->client) 494 if (NULL != ph->client)
495 { 495 {
496 GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO); 496 GNUNET_CLIENT_disconnect (ph->client);
497 ph->client = NULL; 497 ph->client = NULL;
498 } 498 }
499 GNUNET_free (ph); 499 GNUNET_free (ph);
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index ec14e0e13..ddb4f41c8 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -27,7 +27,6 @@
27#include "gnunet_ats_service.h" 27#include "gnunet_ats_service.h"
28#include "ats.h" 28#include "ats.h"
29 29
30#define DEBUG_ATS GNUNET_EXTRA_LOGGING
31 30
32#define INTERFACE_PROCESSING_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1) 31#define INTERFACE_PROCESSING_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
33 32
@@ -213,7 +212,7 @@ static void
213force_reconnect (struct GNUNET_ATS_SchedulingHandle *sh) 212force_reconnect (struct GNUNET_ATS_SchedulingHandle *sh)
214{ 213{
215 sh->reconnect = GNUNET_NO; 214 sh->reconnect = GNUNET_NO;
216 GNUNET_CLIENT_disconnect (sh->client, GNUNET_NO); 215 GNUNET_CLIENT_disconnect (sh->client);
217 sh->client = NULL; 216 sh->client = NULL;
218 sh->task = 217 sh->task =
219 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect_task, 218 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect_task,
@@ -918,7 +917,7 @@ GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh)
918 } 917 }
919 if (NULL != sh->client) 918 if (NULL != sh->client)
920 { 919 {
921 GNUNET_CLIENT_disconnect (sh->client, GNUNET_NO); 920 GNUNET_CLIENT_disconnect (sh->client);
922 sh->client = NULL; 921 sh->client = NULL;
923 } 922 }
924 if (GNUNET_SCHEDULER_NO_TASK != sh->task) 923 if (GNUNET_SCHEDULER_NO_TASK != sh->task)