diff options
Diffstat (limited to 'auto_tests/onion_test.c')
-rw-r--r-- | auto_tests/onion_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c index 61b358d6..28fcbb40 100644 --- a/auto_tests/onion_test.c +++ b/auto_tests/onion_test.c | |||
@@ -479,9 +479,9 @@ START_TEST(test_announce) | |||
479 | 479 | ||
480 | printf("adding friend\n"); | 480 | printf("adding friend\n"); |
481 | int frnum_f = onion_addfriend(onions[NUM_FIRST]->onion_c, | 481 | int frnum_f = onion_addfriend(onions[NUM_FIRST]->onion_c, |
482 | onion_get_net_crypto(onions[NUM_LAST]->onion_c)->self_public_key); | 482 | nc_get_self_public_key(onion_get_net_crypto(onions[NUM_LAST]->onion_c))); |
483 | int frnum = onion_addfriend(onions[NUM_LAST]->onion_c, | 483 | int frnum = onion_addfriend(onions[NUM_LAST]->onion_c, |
484 | onion_get_net_crypto(onions[NUM_FIRST]->onion_c)->self_public_key); | 484 | nc_get_self_public_key(onion_get_net_crypto(onions[NUM_FIRST]->onion_c))); |
485 | 485 | ||
486 | onion_dht_pk_callback(onions[NUM_FIRST]->onion_c, frnum_f, &dht_pk_callback, onions[NUM_FIRST], NUM_FIRST); | 486 | onion_dht_pk_callback(onions[NUM_FIRST]->onion_c, frnum_f, &dht_pk_callback, onions[NUM_FIRST], NUM_FIRST); |
487 | onion_dht_pk_callback(onions[NUM_LAST]->onion_c, frnum, &dht_pk_callback, onions[NUM_LAST], NUM_LAST); | 487 | onion_dht_pk_callback(onions[NUM_LAST]->onion_c, frnum, &dht_pk_callback, onions[NUM_LAST], NUM_LAST); |