From e28fa6841e5c8aec4568946b7a42f2f75eb60e03 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 10 Jan 2011 10:44:46 +0000 Subject: [PATCH] load configuration properly? --- src/core/test_core_api_send_to_self.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/test_core_api_send_to_self.c b/src/core/test_core_api_send_to_self.c index dd81d55d0..3f29682d8 100644 --- a/src/core/test_core_api_send_to_self.c +++ b/src/core/test_core_api_send_to_self.c @@ -42,6 +42,11 @@ GNUNET_SCHEDULER_TaskIdentifier die_task; static struct GNUNET_PeerIdentity myself; +/** + * Configuration to load for the new peer. + */ +struct GNUNET_CONFIGURATION_Handle *core_cfg; + /** * The handle to core */ @@ -163,6 +168,8 @@ run (void *cls, {NULL, 0, 0} }; + core_cfg = GNUNET_CONFIGURATION_create (); + arm_proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm", "gnunet-service-arm", #if VERBOSE @@ -170,7 +177,8 @@ run (void *cls, #endif "-c", "test_core_api_peer1.conf", NULL); - core = GNUNET_CORE_connect (cfg, + GNUNET_assert(GNUNET_OK == GNUNET_CONFIGURATION_load (core_cfg, "test_core_api_peer1.conf")); + core = GNUNET_CORE_connect (core_cfg, 42, NULL, &init, -- 2.25.1