mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-16 17:59:19 +01:00
remove old switch code
This commit is contained in:
parent
8f1e0d2580
commit
947dc13784
18
source/ftp.c
18
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);
|
||||
|
Loading…
Reference in New Issue
Block a user