aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-11 19:18:43 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-11 19:18:43 +0000
commit26c01bc5b1e150d81e7137804295e6d6c6cc9da9 (patch)
treee0c982010cae434ff3fb3481a46f0cb3e7f20889 /src
parent87c4be711b7a39b3bdae020df735eab4fba2de56 (diff)
downloadgnunet-26c01bc5b1e150d81e7137804295e6d6c6cc9da9.tar.gz
gnunet-26c01bc5b1e150d81e7137804295e6d6c6cc9da9.zip
clarify
Diffstat (limited to 'src')
-rw-r--r--src/core/core_api.c16
-rw-r--r--src/core/test_core_api_data.conf4
-rw-r--r--src/core/test_core_api_start_only.c2
3 files changed, 15 insertions, 7 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index f8c7c0aa6..3fcb5fb37 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -547,12 +547,16 @@ init_reply_handler (void *cls, const struct GNUNET_MessageHeader *msg)
547 (ntohs (msg->size) != sizeof (struct InitReplyMessage)) || 547 (ntohs (msg->size) != sizeof (struct InitReplyMessage)) ||
548 (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY)) 548 (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY))
549 { 549 {
550 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 550 if (msg != NULL)
551 _ 551 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
552 ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"), 552 _
553 "INIT_REPLY", 553 ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"),
554 (msg == NULL) ? -1 : ntohs (msg->type), 554 "INIT_REPLY",
555 (msg == NULL) ? -1 : ntohs (msg->size)); 555 ntohs (msg->type),
556 ntohs (msg->size));
557 else
558 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
559 _("Failed to connect to core service.\n"));
556 GNUNET_break (msg == NULL); 560 GNUNET_break (msg == NULL);
557 transmit_start (h, 0, NULL); 561 transmit_start (h, 0, NULL);
558 return; 562 return;
diff --git a/src/core/test_core_api_data.conf b/src/core/test_core_api_data.conf
index 47e6ec76f..3845c7a09 100644
--- a/src/core/test_core_api_data.conf
+++ b/src/core/test_core_api_data.conf
@@ -3,3 +3,7 @@ SERVICEHOME = /tmp/test-gnunet-core/
3 3
4[testing] 4[testing]
5WEAKRANDOM = YES 5WEAKRANDOM = YES
6
7[arm]
8DEBUG = YES
9OPTIONS = -L DEBUG
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index 86eff056c..f33597836 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -31,7 +31,7 @@
31#include "gnunet_program_lib.h" 31#include "gnunet_program_lib.h"
32#include "gnunet_scheduler_lib.h" 32#include "gnunet_scheduler_lib.h"
33 33
34#define VERBOSE GNUNET_NO 34#define VERBOSE GNUNET_YES
35 35
36#define START_ARM GNUNET_YES 36#define START_ARM GNUNET_YES
37 37