From d8f2072ab5e1a7e5a8a96db077d40cb28c1a9a24 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Sun, 19 Jan 2014 15:27:29 -0500 Subject: Fixed function conflict --- other/bootstrap_serverdaemon/tox_dht_bootstrap_server_daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'other/bootstrap_serverdaemon') diff --git a/other/bootstrap_serverdaemon/tox_dht_bootstrap_server_daemon.c b/other/bootstrap_serverdaemon/tox_dht_bootstrap_server_daemon.c index 8944993c..3c6d7b4e 100644 --- a/other/bootstrap_serverdaemon/tox_dht_bootstrap_server_daemon.c +++ b/other/bootstrap_serverdaemon/tox_dht_bootstrap_server_daemon.c @@ -273,7 +273,7 @@ next: // returns 1 on success // 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); @@ -382,7 +382,7 @@ int main(int argc, char *argv[]) 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"); } else { syslog(LOG_ERR, "Couldn't connect to the DHT. Check settings and network connections. Exiting.\n"); -- cgit v1.2.3