diff options
Diffstat (limited to 'src/transport/transport-testing2.c')
-rw-r--r-- | src/transport/transport-testing2.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c index 0a7aa1da0..dbbc94c7f 100644 --- a/src/transport/transport-testing2.c +++ b/src/transport/transport-testing2.c | |||
@@ -220,14 +220,25 @@ communicator_start (const char *cfgname) | |||
220 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * | 220 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle * |
221 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start | 221 | GNUNET_TRANSPORT_TESTING_transport_communicator_service_start |
222 | (const char *service_name, | 222 | (const char *service_name, |
223 | struct GNUNET_CONFIGURATION_Handle *cfg, | 223 | struct GNUNET_CONFIGURATION_Handle *cfg_filename, |
224 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available, | 224 | GNUNET_TRANSPORT_TESTING_CommunicatorAvailableCallback communicator_available, |
225 | //GNUNET_TRANSPORT_TESTING_Callback2 cb2, | 225 | //GNUNET_TRANSPORT_TESTING_Callback2 cb2, |
226 | //GNUNET_TRANSPORT_TESTING_Callback3 cb3, | 226 | //GNUNET_TRANSPORT_TESTING_Callback3 cb3, |
227 | //GNUNET_TRANSPORT_TESTING_Callback4 cb4, | 227 | //GNUNET_TRANSPORT_TESTING_Callback4 cb4, |
228 | void *cb_cls) | 228 | void *cb_cls) |
229 | { | 229 | { |
230 | struct GNUNET_CONFIGURATION_Handle *cfg; | ||
230 | 231 | ||
232 | cfg = GNUNET_CONFIGURATION_create (); | ||
233 | if ( (GNUNET_SYSERR == | ||
234 | GNUNET_CONFIGURATION_load (cfg, | ||
235 | cfg_filename)) ) | ||
236 | { | ||
237 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
238 | _("Malformed configuration file `%s', exit ...\n"), | ||
239 | cfg_filename); | ||
240 | return NULL; | ||
241 | } | ||
231 | /* Start communicator part of service */ | 242 | /* Start communicator part of service */ |
232 | transport_communicator_start (communicator_available, cfg); | 243 | transport_communicator_start (communicator_available, cfg); |
233 | 244 | ||