From: Christian Grothoff Date: Tue, 9 Feb 2010 23:00:21 +0000 (+0000) Subject: remove debug stuff, make compilers happier X-Git-Tag: initial-import-from-subversion-38251~22751 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=275e265a199ce71fd2eeffb80c99297c577734d4;p=oweals%2Fgnunet.git remove debug stuff, make compilers happier --- diff --git a/src/arm/arm.h b/src/arm/arm.h index 2f107351c..562113068 100644 --- a/src/arm/arm.h +++ b/src/arm/arm.h @@ -31,6 +31,6 @@ * This option will turn on the DEBUG loglevel for * all processes controlled by this ARM! */ -#define DEBUG_ARM GNUNET_YES +#define DEBUG_ARM GNUNET_NO #endif diff --git a/src/arm/test_arm_api_data.conf b/src/arm/test_arm_api_data.conf index 11c5e2685..bdacfd476 100644 --- a/src/arm/test_arm_api_data.conf +++ b/src/arm/test_arm_api_data.conf @@ -7,7 +7,7 @@ PORT = 23354 DEFAULTSERVICES = BINARY = gnunet-service-arm OPTIONS = -L ERROR -DEBUG = YES +#DEBUG = YES [resolver] #DEBUG = YES diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 92391ea40..b5b363662 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c @@ -134,6 +134,8 @@ kill_task (void *cbData, "Waited for: %llu ms\n\n", (unsigned long long) waitedFor.value); } + else + waitedFor.value = 0; /* Connect to the doNothing task */ doNothingConnection = GNUNET_CLIENT_connect (sched, "do-nothing", cfg); if (NULL == doNothingConnection) @@ -152,8 +154,6 @@ kill_task (void *cbData, /* Use the created connection to kill the doNothingTask */ GNUNET_CLIENT_service_shutdown(doNothingConnection); trialCount++; - if (startedWaitingAt.value == 0) - waitedFor.value = 0; startedWaitingAt = GNUNET_TIME_absolute_get(); GNUNET_SCHEDULER_add_delayed (sched, waitedFor,