nTox and cmake fixed.

This commit is contained in:
irungentoo 2013-08-20 15:28:16 -04:00
parent ac621d96d3
commit 2f66b31244
2 changed files with 3 additions and 4 deletions

View File

@ -10,8 +10,7 @@ set(core_sources
LAN_discovery.c LAN_discovery.c
Messenger.c Messenger.c
util.c util.c
ping.c ping.c)
timer.c)
if(SHARED_TOXCORE) if(SHARED_TOXCORE)
add_library(toxcore SHARED ${core_sources}) add_library(toxcore SHARED ${core_sources})

View File

@ -521,12 +521,12 @@ int main(int argc, char *argv[])
exit(1); exit(1);
unsigned char *binary_string = hex_string_to_bin(argv[3]); unsigned char *binary_string = hex_string_to_bin(argv[3]);
DHT_bootstrap(bootstrap_ip_port, binary_string); DHT_bootstrap(m->dht, bootstrap_ip_port, binary_string);
free(binary_string); free(binary_string);
nodelay(stdscr, TRUE); nodelay(stdscr, TRUE);
while (true) { while (true) {
if (on == 0 && DHT_isconnected()) { if (on == 0 && DHT_isconnected(m->dht)) {
new_lines("[i] connected to DHT\n[i] define username with /n"); new_lines("[i] connected to DHT\n[i] define username with /n");
on = 1; on = 1;
} }