diff options
-rw-r--r-- | src/transport/test_transport_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index eb0e406d3..dd285cea3 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -186,6 +186,7 @@ testing_connect_cb (struct PeerContext * p1, struct PeerContext * p2, void *cls) | |||
186 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", | 186 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", |
187 | p1_c, | 187 | p1_c, |
188 | GNUNET_i2s (&p2->id)); | 188 | GNUNET_i2s (&p2->id)); |
189 | GNUNET_free (p1_c); | ||
189 | 190 | ||
190 | // FIXME: THIS IS REQUIRED! SEEMS TO BE A BUG! | 191 | // FIXME: THIS IS REQUIRED! SEEMS TO BE A BUG! |
191 | GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_UNIT_SECONDS, &sendtask, NULL); | 192 | GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_UNIT_SECONDS, &sendtask, NULL); |
@@ -364,6 +365,7 @@ main (int argc, char *argv[]) | |||
364 | NULL); | 365 | NULL); |
365 | 366 | ||
366 | char * pch = strdup(argv[0]); | 367 | char * pch = strdup(argv[0]); |
368 | char * backup = pch; | ||
367 | char * filename = NULL; | 369 | char * filename = NULL; |
368 | char *dotexe; | 370 | char *dotexe; |
369 | 371 | ||
@@ -375,19 +377,15 @@ main (int argc, char *argv[]) | |||
375 | if (pch != NULL) | 377 | if (pch != NULL) |
376 | filename = pch; | 378 | filename = pch; |
377 | } | 379 | } |
378 | |||
379 | /* remove "lt-" */ | 380 | /* remove "lt-" */ |
380 | |||
381 | filename = strstr(filename, "tes"); | 381 | filename = strstr(filename, "tes"); |
382 | if (NULL != (dotexe = strstr (filename, ".exe"))) | 382 | if (NULL != (dotexe = strstr (filename, ".exe"))) |
383 | dotexe[0] = '\0'; | 383 | dotexe[0] = '\0'; |
384 | 384 | ||
385 | //filename = &filename[1]; | ||
386 | //GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
387 | // "`%s'\n",filename); | ||
388 | /* create cfg filename */ | 385 | /* create cfg filename */ |
389 | GNUNET_asprintf(&cfg_file_p1, "%s_peer1.conf",filename); | 386 | GNUNET_asprintf(&cfg_file_p1, "%s_peer1.conf",filename); |
390 | GNUNET_asprintf(&cfg_file_p2, "%s_peer2.conf", filename); | 387 | GNUNET_asprintf(&cfg_file_p2, "%s_peer2.conf", filename); |
388 | GNUNET_free (backup); | ||
391 | 389 | ||
392 | if (strstr(argv[0], "tcp_nat") != NULL) | 390 | if (strstr(argv[0], "tcp_nat") != NULL) |
393 | { | 391 | { |
@@ -410,11 +408,13 @@ main (int argc, char *argv[]) | |||
410 | } | 408 | } |
411 | } | 409 | } |
412 | 410 | ||
411 | |||
413 | ret = check (); | 412 | ret = check (); |
414 | 413 | ||
415 | GNUNET_free (cfg_file_p1); | 414 | GNUNET_free (cfg_file_p1); |
416 | GNUNET_free (cfg_file_p2); | 415 | GNUNET_free (cfg_file_p2); |
417 | 416 | ||
417 | |||
418 | return ret; | 418 | return ret; |
419 | } | 419 | } |
420 | 420 | ||