summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r--toxcore/LAN_discovery.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index 420c490d..3c05fe8d 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -46,7 +46,6 @@ static void fetch_broadcast_info(uint16_t port)
46 unsigned long ulOutBufLen = sizeof(pAdapterInfo); 46 unsigned long ulOutBufLen = sizeof(pAdapterInfo);
47 47
48 if (pAdapterInfo == NULL) { 48 if (pAdapterInfo == NULL) {
49 printf("Error allocating memory for pAdapterInfo\n");
50 return; 49 return;
51 } 50 }
52 51
@@ -55,7 +54,6 @@ static void fetch_broadcast_info(uint16_t port)
55 pAdapterInfo = malloc(ulOutBufLen); 54 pAdapterInfo = malloc(ulOutBufLen);
56 55
57 if (pAdapterInfo == NULL) { 56 if (pAdapterInfo == NULL) {
58 printf("Error allocating memory needed to call GetAdaptersinfo\n");
59 return; 57 return;
60 } 58 }
61 } 59 }
@@ -78,7 +76,6 @@ static void fetch_broadcast_info(uint16_t port)
78 ip_port->ip.ip4.uint32 = htonl(broadcast_ip); 76 ip_port->ip.ip4.uint32 = htonl(broadcast_ip);
79 ip_port->port = port; 77 ip_port->port = port;
80 broadcast_count++; 78 broadcast_count++;
81 printf("broadcast ip: %s\n", ip_ntoa(&ip_port->ip));
82 79
83 if (broadcast_count >= MAX_INTERFACES) { 80 if (broadcast_count >= MAX_INTERFACES) {
84 return; 81 return;
@@ -88,10 +85,7 @@ static void fetch_broadcast_info(uint16_t port)
88 85
89 pAdapter = pAdapter->Next; 86 pAdapter = pAdapter->Next;
90 } 87 }
91 } else {
92 printf("Fetching adapter info failed %i\n", ret);
93 } 88 }
94
95} 89}
96 90
97#elif defined(__linux__) 91#elif defined(__linux__)