From 00020830b88eacd8126231d0eb9b23e49b6fe122 Mon Sep 17 00:00:00 2001 From: Ian Clowes Date: Mon, 25 May 2020 22:49:37 +0100 Subject: [PATCH] Removed some local debugging code --- src/network/tcpsocket.c | 1 - src/storage/datastorage.c | 4 ++-- src/utils/dawn_uci.c | 6 +----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/network/tcpsocket.c b/src/network/tcpsocket.c index c194028..0d44cbc 100644 --- a/src/network/tcpsocket.c +++ b/src/network/tcpsocket.c @@ -218,7 +218,6 @@ int add_tcp_conncection(char *ipv4, int port) { uloop_fd_add(&tcp_entry->fd, ULOOP_WRITE | ULOOP_EDGE_TRIGGER); printf("New TCP connection to %s:%d\n", ipv4, port); - fprintf(stderr, "New TCP connection to %s:%d\n", ipv4, port); list_add(&tcp_entry->list, &tcp_sock_list); return 0; diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index b5ae7f8..d34042c 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -62,7 +62,7 @@ void send_beacon_reports(uint8_t bssid[], int id) { } } - // Go through clients + // Go threw clients int j; for (j = i; j <= client_entry_last; j++) { if (!mac_is_equal(client_array[j].bssid_addr, bssid)) { @@ -283,7 +283,7 @@ void kick_clients(uint8_t bssid[], uint32_t id) { } } - // Go through clients + // Go threw clients int j; for (j = i; j <= client_entry_last; j++) { if (!mac_is_equal(client_array[j].bssid_addr, bssid)) { diff --git a/src/utils/dawn_uci.c b/src/utils/dawn_uci.c index d28601c..9ac4997 100644 --- a/src/utils/dawn_uci.c +++ b/src/utils/dawn_uci.c @@ -116,17 +116,13 @@ struct network_config_s uci_get_dawn_network() { } const char *uci_get_dawn_hostapd_dir() { -const char *ret = NULL; - struct uci_element *e; uci_foreach_element(&uci_pkg->sections, e) { struct uci_section *s = uci_to_section(e); if (strcmp(s->type, "hostapd") == 0) { - ret = uci_lookup_option_string(uci_ctx, s, "hostapd_dir"); - fprintf(stderr, "Found hostapd_dir = %s\n", ret); - return ret; + return uci_lookup_option_string(uci_ctx, s, "hostapd_dir"); } } return NULL;