mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed function conflict
This commit is contained in:
parent
500acfce0b
commit
d8f2072ab5
|
@ -273,7 +273,7 @@ next:
|
||||||
// returns 1 on success
|
// returns 1 on success
|
||||||
// 0 on failure
|
// 0 on failure
|
||||||
|
|
||||||
int is_connected(DHT *dht, int port, int enable_lan_discovery)
|
int try_connect(DHT *dht, int port, int enable_lan_discovery)
|
||||||
{
|
{
|
||||||
uint16_t htons_port = htons(port);
|
uint16_t htons_port = htons(port);
|
||||||
|
|
||||||
|
@ -382,7 +382,7 @@ int main(int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_connected(dht, port, enable_lan_discovery)) {
|
if (try_connect(dht, port, enable_lan_discovery)) {
|
||||||
syslog(LOG_INFO, "Successfully connected to DHT\n");
|
syslog(LOG_INFO, "Successfully connected to DHT\n");
|
||||||
} else {
|
} else {
|
||||||
syslog(LOG_ERR, "Couldn't connect to the DHT. Check settings and network connections. Exiting.\n");
|
syslog(LOG_ERR, "Couldn't connect to the DHT. Check settings and network connections. Exiting.\n");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user