diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-10 16:44:49 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-11 11:59:14 +0000 |
commit | 2fbed5b4c55ca92edbd436d4d0fa0a35506855c3 (patch) | |
tree | f9cee9b3eb13d47789ec0340a59ae105dce0a07a /auto_tests/dht_test.c | |
parent | c84daff5413c45fb9e87fa5dbb7ae228564cfd2f (diff) |
Move Networking_Core struct into the .c file.
To make it an abstract type everywhere except in network.c.
Diffstat (limited to 'auto_tests/dht_test.c')
-rw-r--r-- | auto_tests/dht_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c index 3125454a..c426d3e8 100644 --- a/auto_tests/dht_test.c +++ b/auto_tests/dht_test.c | |||
@@ -468,7 +468,7 @@ static void test_list_main(void) | |||
468 | 468 | ||
469 | dhts[i] = new_DHT(NULL, new_networking(NULL, ip, DHT_DEFAULT_PORT + i), true); | 469 | dhts[i] = new_DHT(NULL, new_networking(NULL, ip, DHT_DEFAULT_PORT + i), true); |
470 | ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i); | 470 | ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i); |
471 | ck_assert_msg(dhts[i]->net->port != DHT_DEFAULT_PORT + i, "Bound to wrong port"); | 471 | ck_assert_msg(net_port(dhts[i]->net) != DHT_DEFAULT_PORT + i, "Bound to wrong port"); |
472 | } | 472 | } |
473 | 473 | ||
474 | for (j = 0; j < NUM_DHT; ++j) { | 474 | for (j = 0; j < NUM_DHT; ++j) { |
@@ -604,7 +604,7 @@ START_TEST(test_DHT_test) | |||
604 | 604 | ||
605 | dhts[i] = new_DHT(NULL, new_networking(NULL, ip, DHT_DEFAULT_PORT + i), true); | 605 | dhts[i] = new_DHT(NULL, new_networking(NULL, ip, DHT_DEFAULT_PORT + i), true); |
606 | ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i); | 606 | ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i); |
607 | ck_assert_msg(dhts[i]->net->port != DHT_DEFAULT_PORT + i, "Bound to wrong port"); | 607 | ck_assert_msg(net_port(dhts[i]->net) != DHT_DEFAULT_PORT + i, "Bound to wrong port"); |
608 | } | 608 | } |
609 | 609 | ||
610 | struct { | 610 | struct { |