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
Messenger.c
util.c
ping.c
timer.c)
ping.c)
if(SHARED_TOXCORE)
add_library(toxcore SHARED ${core_sources})

View File

@ -521,12 +521,12 @@ int main(int argc, char *argv[])
exit(1);
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);
nodelay(stdscr, 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");
on = 1;
}