aboutsummaryrefslogtreecommitdiff
path: root/networking/ftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 91cbc17f4..6289edf0c 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -107,14 +107,6 @@ struct globals {
107#define G (*(struct globals*)&bb_common_bufsiz1) 107#define G (*(struct globals*)&bb_common_bufsiz1)
108#define INIT_G() do { } while (0) 108#define INIT_G() do { } while (0)
109 109
110
111// libbb candidate?
112static void
113xwrite_str(int fd, const char *str)
114{
115 xwrite(fd, str, strlen(str));
116}
117
118static char * 110static char *
119replace_text(const char *str, const char from, const char *to) 111replace_text(const char *str, const char from, const char *to)
120{ 112{
@@ -918,20 +910,6 @@ handle_stou(void)
918} 910}
919#endif /* ENABLE_FEATURE_FTP_WRITE */ 911#endif /* ENABLE_FEATURE_FTP_WRITE */
920 912
921/* TODO: libbb candidate (tftp has another copy) */
922static len_and_sockaddr *get_sock_lsa(int s)
923{
924 len_and_sockaddr *lsa;
925 socklen_t len = 0;
926
927 if (getsockname(s, NULL, &len) != 0)
928 return NULL;
929 lsa = xzalloc(LSA_LEN_SIZE + len);
930 lsa->len = len;
931 getsockname(s, &lsa->u.sa, &lsa->len);
932 return lsa;
933}
934
935int ftpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 913int ftpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
936int ftpd_main(int argc UNUSED_PARAM, char **argv) 914int ftpd_main(int argc UNUSED_PARAM, char **argv)
937{ 915{