summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/CMakeLists.txt3
-rw-r--r--testing/nTox.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index ad6eea01..55a41912 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -10,8 +10,7 @@ set(core_sources
10 LAN_discovery.c 10 LAN_discovery.c
11 Messenger.c 11 Messenger.c
12 util.c 12 util.c
13 ping.c 13 ping.c)
14 timer.c)
15 14
16if(SHARED_TOXCORE) 15if(SHARED_TOXCORE)
17 add_library(toxcore SHARED ${core_sources}) 16 add_library(toxcore SHARED ${core_sources})
diff --git a/testing/nTox.c b/testing/nTox.c
index 8813f305..a476cc19 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -521,12 +521,12 @@ int main(int argc, char *argv[])
521 exit(1); 521 exit(1);
522 522
523 unsigned char *binary_string = hex_string_to_bin(argv[3]); 523 unsigned char *binary_string = hex_string_to_bin(argv[3]);
524 DHT_bootstrap(bootstrap_ip_port, binary_string); 524 DHT_bootstrap(m->dht, bootstrap_ip_port, binary_string);
525 free(binary_string); 525 free(binary_string);
526 nodelay(stdscr, TRUE); 526 nodelay(stdscr, TRUE);
527 527
528 while (true) { 528 while (true) {
529 if (on == 0 && DHT_isconnected()) { 529 if (on == 0 && DHT_isconnected(m->dht)) {
530 new_lines("[i] connected to DHT\n[i] define username with /n"); 530 new_lines("[i] connected to DHT\n[i] define username with /n");
531 on = 1; 531 on = 1;
532 } 532 }