diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-04 21:01:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-04 21:01:22 +0000 |
commit | 0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf (patch) | |
tree | ac53b9088e75b7041e14e3455698a75da085b3d7 /src/arm | |
parent | b6d09b511fbd61d3b36fde4c28624bed321bf4a1 (diff) | |
download | gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.tar.gz gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.zip |
-misc bugfixes, travel hacking
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/gnunet-arm.c | 3 | ||||
-rw-r--r-- | src/arm/test_arm_api_data.conf | 4 | ||||
-rw-r--r-- | src/arm/test_exponential_backoff.c | 13 |
3 files changed, 2 insertions, 18 deletions
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c index c155577d0..49315687f 100644 --- a/src/arm/gnunet-arm.c +++ b/src/arm/gnunet-arm.c | |||
@@ -450,9 +450,10 @@ main (int argc, char *const *argv) | |||
450 | ("Control services and the Automated Restart Manager (ARM)"), | 450 | ("Control services and the Automated Restart Manager (ARM)"), |
451 | options, &run, NULL)) | 451 | options, &run, NULL)) |
452 | { | 452 | { |
453 | GNUNET_free ((void *) argv); | ||
453 | return ret; | 454 | return ret; |
454 | } | 455 | } |
455 | 456 | GNUNET_free ((void*) argv); | |
456 | return 1; | 457 | return 1; |
457 | } | 458 | } |
458 | 459 | ||
diff --git a/src/arm/test_arm_api_data.conf b/src/arm/test_arm_api_data.conf index cbadc47d2..8ebd6976c 100644 --- a/src/arm/test_arm_api_data.conf +++ b/src/arm/test_arm_api_data.conf | |||
@@ -6,16 +6,13 @@ PORT = 23354 | |||
6 | DEFAULTSERVICES = | 6 | DEFAULTSERVICES = |
7 | BINARY = gnunet-service-arm | 7 | BINARY = gnunet-service-arm |
8 | OPTIONS = -L ERROR | 8 | OPTIONS = -L ERROR |
9 | # DEBUG = YES | ||
10 | #PREFIX = valgrind --tool=memcheck --leak-check=yes | 9 | #PREFIX = valgrind --tool=memcheck --leak-check=yes |
11 | 10 | ||
12 | [resolver] | 11 | [resolver] |
13 | # DEBUG = YES | ||
14 | PORT = 23355 | 12 | PORT = 23355 |
15 | # PREFIX = valgrind | 13 | # PREFIX = valgrind |
16 | 14 | ||
17 | [do-nothing] | 15 | [do-nothing] |
18 | #DEBUG = YES | ||
19 | AUTOSTART = NO | 16 | AUTOSTART = NO |
20 | PORT = 2223 | 17 | PORT = 2223 |
21 | HOSTNAME = localhost | 18 | HOSTNAME = localhost |
@@ -42,7 +39,6 @@ AUTOSTART = NO | |||
42 | 39 | ||
43 | [statistics] | 40 | [statistics] |
44 | AUTOSTART = YES | 41 | AUTOSTART = YES |
45 | # DEBUG = NO | ||
46 | 42 | ||
47 | 43 | ||
48 | [dns] | 44 | [dns] |
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 1709dbdba..34ebad164 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c | |||
@@ -28,8 +28,6 @@ | |||
28 | #include "gnunet_program_lib.h" | 28 | #include "gnunet_program_lib.h" |
29 | #include "gnunet_protocols.h" | 29 | #include "gnunet_protocols.h" |
30 | 30 | ||
31 | #define VERBOSE GNUNET_NO | ||
32 | |||
33 | #define START_ARM GNUNET_YES | 31 | #define START_ARM GNUNET_YES |
34 | 32 | ||
35 | #define LOG_BACKOFF GNUNET_NO | 33 | #define LOG_BACKOFF GNUNET_NO |
@@ -115,9 +113,7 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
115 | 113 | ||
116 | if (msg == NULL) | 114 | if (msg == NULL) |
117 | { | 115 | { |
118 | #if VERBOSE | ||
119 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service shutdown complete.\n"); | 116 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Service shutdown complete.\n"); |
120 | #endif | ||
121 | if (shutdown_ctx->cont != NULL) | 117 | if (shutdown_ctx->cont != NULL) |
122 | shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO); | 118 | shutdown_ctx->cont (shutdown_ctx->cont_cls, GNUNET_NO); |
123 | 119 | ||
@@ -131,10 +127,8 @@ service_shutdown_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
131 | switch (ntohs (msg->type)) | 127 | switch (ntohs (msg->type)) |
132 | { | 128 | { |
133 | case GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN: | 129 | case GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN: |
134 | #if VERBOSE | ||
135 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 130 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
136 | "Received confirmation for service shutdown.\n"); | 131 | "Received confirmation for service shutdown.\n"); |
137 | #endif | ||
138 | shutdown_ctx->confirmed = GNUNET_YES; | 132 | shutdown_ctx->confirmed = GNUNET_YES; |
139 | GNUNET_CLIENT_receive (shutdown_ctx->sock, | 133 | GNUNET_CLIENT_receive (shutdown_ctx->sock, |
140 | &service_shutdown_handler, shutdown_ctx, | 134 | &service_shutdown_handler, shutdown_ctx, |
@@ -379,9 +373,6 @@ check () | |||
379 | char *const argv[] = { | 373 | char *const argv[] = { |
380 | "test-exponential-backoff", | 374 | "test-exponential-backoff", |
381 | "-c", "test_arm_api_data.conf", | 375 | "-c", "test_arm_api_data.conf", |
382 | #if VERBOSE | ||
383 | "-L", "DEBUG", | ||
384 | #endif | ||
385 | NULL | 376 | NULL |
386 | }; | 377 | }; |
387 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 378 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
@@ -431,11 +422,7 @@ main (int argc, char *argv[]) | |||
431 | int ret; | 422 | int ret; |
432 | 423 | ||
433 | GNUNET_log_setup ("test-exponential-backoff", | 424 | GNUNET_log_setup ("test-exponential-backoff", |
434 | #if VERBOSE | ||
435 | "DEBUG", | ||
436 | #else | ||
437 | "WARNING", | 425 | "WARNING", |
438 | #endif | ||
439 | NULL); | 426 | NULL); |
440 | 427 | ||
441 | init (); | 428 | init (); |