gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14130 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r14130 - gnunet/src/core
Date: Mon, 10 Jan 2011 11:44:46 +0100

Author: nevans
Date: 2011-01-10 11:44:46 +0100 (Mon, 10 Jan 2011)
New Revision: 14130

Modified:
   gnunet/src/core/test_core_api_send_to_self.c
Log:
load configuration properly?

Modified: gnunet/src/core/test_core_api_send_to_self.c
===================================================================
--- gnunet/src/core/test_core_api_send_to_self.c        2011-01-10 10:40:57 UTC 
(rev 14129)
+++ gnunet/src/core/test_core_api_send_to_self.c        2011-01-10 10:44:46 UTC 
(rev 14130)
@@ -43,6 +43,11 @@
 static struct GNUNET_PeerIdentity myself;
 
 /**
+ * Configuration to load for the new peer.
+ */
+struct GNUNET_CONFIGURATION_Handle *core_cfg;
+
+/**
  * The handle to core
  */
 struct GNUNET_CORE_Handle *core;
@@ -163,6 +168,8 @@
     {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 @@
 #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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]