From 82c40b9c8a70968ce82ac0d56bdd15334da3599e Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sun, 3 Aug 2014 15:56:09 -0400 Subject: remove unneeded printf's/prevent stdout spam --- toxcore/LAN_discovery.c | 6 ------ toxcore/TCP_client.c | 1 - 2 files changed, 7 deletions(-) (limited to 'toxcore') 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) unsigned long ulOutBufLen = sizeof(pAdapterInfo); if (pAdapterInfo == NULL) { - printf("Error allocating memory for pAdapterInfo\n"); return; } @@ -55,7 +54,6 @@ static void fetch_broadcast_info(uint16_t port) pAdapterInfo = malloc(ulOutBufLen); if (pAdapterInfo == NULL) { - printf("Error allocating memory needed to call GetAdaptersinfo\n"); return; } } @@ -78,7 +76,6 @@ static void fetch_broadcast_info(uint16_t port) ip_port->ip.ip4.uint32 = htonl(broadcast_ip); ip_port->port = port; broadcast_count++; - printf("broadcast ip: %s\n", ip_ntoa(&ip_port->ip)); if (broadcast_count >= MAX_INTERFACES) { return; @@ -88,10 +85,7 @@ static void fetch_broadcast_info(uint16_t port) pAdapter = pAdapter->Next; } - } else { - printf("Fetching adapter info failed %i\n", ret); } - } #elif defined(__linux__) diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c index 45220538..ff92d215 100644 --- a/toxcore/TCP_client.c +++ b/toxcore/TCP_client.c @@ -460,7 +460,6 @@ TCP_Client_Connection *new_TCP_connection(IP_Port ip_port, const uint8_t *public sock_t sock = socket(ip_port.ip.family, SOCK_STREAM, IPPROTO_TCP); if (!sock_valid(sock)) { - printf("fail1 %u\n", sock); return NULL; } -- cgit v1.2.3