aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-07-02 09:37:55 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-07-02 09:37:55 +0000
commit8e4a7c4f930757ce1bcab560c853caa7608fd930 (patch)
tree47159604f2929867f8230fbcbb291b0c821960e3 /src
parent76df6221392b5d56fecf7de4ad7d5e2c7cfb3722 (diff)
downloadgnunet-8e4a7c4f930757ce1bcab560c853caa7608fd930.tar.gz
gnunet-8e4a7c4f930757ce1bcab560c853caa7608fd930.zip
- minor changes
Diffstat (limited to 'src')
-rw-r--r--src/transport/transport-testing.c9
-rw-r--r--src/transport/transport-testing.h5
2 files changed, 13 insertions, 1 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 3411f7f43..8f75c8109 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -608,6 +608,8 @@ GNUNET_TRANSPORT_TESTING_done (struct GNUNET_TRANSPORT_TESTING_handle *tth)
608 608
609 GNUNET_free_non_null (tth->hostkey_data); 609 GNUNET_free_non_null (tth->hostkey_data);
610 610
611 GNUNET_TESTING_system_destroy (tth->tl_system, GNUNET_YES);
612
611 GNUNET_free (tth); 613 GNUNET_free (tth);
612 tth = NULL; 614 tth = NULL;
613} 615}
@@ -625,9 +627,14 @@ GNUNET_TRANSPORT_TESTING_init ()
625 uint64_t fs; 627 uint64_t fs;
626 uint64_t total_hostkeys; 628 uint64_t total_hostkeys;
627 629
628
629 /* prepare hostkeys */ 630 /* prepare hostkeys */
630 tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle)); 631 tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle));
632
633 /* Init testing the testing lib */
634 tth->tl_system = GNUNET_TESTING_system_create ("transport-testing",
635 "127.0.0.1");
636
637
631 tth->hostkey_data = NULL; 638 tth->hostkey_data = NULL;
632 const char *hostkeys_file = "../../contrib/testing_hostkeys.dat"; 639 const char *hostkeys_file = "../../contrib/testing_hostkeys.dat";
633 640
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index 639eff018..3129bc0a0 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -182,6 +182,11 @@ struct GNUNET_TRANSPORT_TESTING_handle
182 struct ConnectingContext *cc_head; 182 struct ConnectingContext *cc_head;
183 struct ConnectingContext *cc_tail; 183 struct ConnectingContext *cc_tail;
184 184
185 /**
186 * Testing library system handle
187 */
188 struct GNUNET_TESTING_System *tl_system;
189
185 char *hostkey_data; 190 char *hostkey_data;
186 int hostkeys_total; 191 int hostkeys_total;
187 int hostkeys_last; 192 int hostkeys_last;