diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-01-10 10:44:46 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-01-10 10:44:46 +0000 |
commit | e28fa6841e5c8aec4568946b7a42f2f75eb60e03 (patch) | |
tree | b0f1397b57c6aa79e3954883615ba11cff656b4c /src/core/test_core_api_send_to_self.c | |
parent | 7d5388c02e2845ccec0127405801ad534a88b48e (diff) | |
download | gnunet-e28fa6841e5c8aec4568946b7a42f2f75eb60e03.tar.gz gnunet-e28fa6841e5c8aec4568946b7a42f2f75eb60e03.zip |
load configuration properly?
Diffstat (limited to 'src/core/test_core_api_send_to_self.c')
-rw-r--r-- | src/core/test_core_api_send_to_self.c | 10 |
1 files changed, 9 insertions, 1 deletions
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 | |||
@@ -43,6 +43,11 @@ GNUNET_SCHEDULER_TaskIdentifier die_task; | |||
43 | static struct GNUNET_PeerIdentity myself; | 43 | static struct GNUNET_PeerIdentity myself; |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Configuration to load for the new peer. | ||
47 | */ | ||
48 | struct GNUNET_CONFIGURATION_Handle *core_cfg; | ||
49 | |||
50 | /** | ||
46 | * The handle to core | 51 | * The handle to core |
47 | */ | 52 | */ |
48 | struct GNUNET_CORE_Handle *core; | 53 | struct GNUNET_CORE_Handle *core; |
@@ -163,6 +168,8 @@ run (void *cls, | |||
163 | {NULL, 0, 0} | 168 | {NULL, 0, 0} |
164 | }; | 169 | }; |
165 | 170 | ||
171 | core_cfg = GNUNET_CONFIGURATION_create (); | ||
172 | |||
166 | arm_proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm", | 173 | arm_proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm", |
167 | "gnunet-service-arm", | 174 | "gnunet-service-arm", |
168 | #if VERBOSE | 175 | #if VERBOSE |
@@ -170,7 +177,8 @@ run (void *cls, | |||
170 | #endif | 177 | #endif |
171 | "-c", "test_core_api_peer1.conf", NULL); | 178 | "-c", "test_core_api_peer1.conf", NULL); |
172 | 179 | ||
173 | core = GNUNET_CORE_connect (cfg, | 180 | GNUNET_assert(GNUNET_OK == GNUNET_CONFIGURATION_load (core_cfg, "test_core_api_peer1.conf")); |
181 | core = GNUNET_CORE_connect (core_cfg, | ||
174 | 42, | 182 | 42, |
175 | NULL, | 183 | NULL, |
176 | &init, | 184 | &init, |