From: Nathan S. Evans Date: Mon, 10 Jan 2011 10:44:46 +0000 (+0000) Subject: load configuration properly? X-Git-Tag: initial-import-from-subversion-38251~19357 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e28fa6841e5c8aec4568946b7a42f2f75eb60e03;p=oweals%2Fgnunet.git load configuration properly? --- 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,