summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-03-08 19:08:33 -0400
committerirungentoo <irungentoo@gmail.com>2015-03-08 19:08:33 -0400
commit73b9cf48f98e2d377d146ee0dfa5b6c65b69976c (patch)
tree0f6727eebb147caef391023b0b5ac51fb0d3c282
parent2af1608059da9dfbf91fd2d25c8367b426ca182a (diff)
parent3315fd257146bf423a895cf988b90954294a2efe (diff)
Merge branch 'worfox-new_api' into new_api
-rw-r--r--toxcore/network.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 4558f6ff..d7d07bdb 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -654,10 +654,9 @@ Networking_Core *new_networking_ex(IP ip, uint16_t port_from, uint16_t port_to)
654 *portptr = htons(port_to_try); 654 *portptr = htons(port_to_try);
655 } 655 }
656 656
657#ifdef DEBUG 657 LOGGER_ERROR("Failed to bind socket: %u, %s IP: %s port_from: %u port_to: %u", errno, strerror(errno),
658 fprintf(stderr, "Failed to bind socket: %u, %s IP: %s port_from: %u port_to: %u\n", errno, strerror(errno), 658 ip_ntoa(&ip), port_from, port_to);
659 ip_ntoa(&ip), port_from, port_to); 659
660#endif
661 kill_networking(temp); 660 kill_networking(temp);
662 return NULL; 661 return NULL;
663} 662}