From 947dc13784dd91c5b9dd5f7c20995d4f2b034fd7 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Wed, 15 Aug 2018 19:09:05 +0100 Subject: [PATCH] remove old switch code --- source/ftp.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/source/ftp.c b/source/ftp.c index 497e887..4778095 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -1813,24 +1813,6 @@ update_status(void) inet_ntoa(serv_addr.sin_addr), ntohs(serv_addr.sin_port)); update_free_space(); -#elif 0//defined(__SWITCH__) - char hostname[128]; - socklen_t addrlen = sizeof(serv_addr); - int rc; - rc = gethostname(hostname, sizeof(hostname)); - if(rc != 0) - { - console_print(RED "gethostname: %d %s\n" RESET, errno, strerror(errno)); - return -1; - } - console_set_status("\n" GREEN STATUS_STRING " test " -#ifdef ENABLE_LOGGING - "DEBUG " -#endif - CYAN "%s:%u" RESET, - hostname, - ntohs(serv_addr.sin_port)); - update_free_space(); #else char hostname[128]; socklen_t addrlen = sizeof(serv_addr);