This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new e3a9be0d0 Minor changes in ftpd. e3a9be0d0 is described below commit e3a9be0d0511545a13b2439f595cd80037b99062 Author: Fotis Panagiotopoulos <f.pa...@amco.gr> AuthorDate: Sat Sep 3 14:32:49 2022 +0300 Minor changes in ftpd. --- include/netutils/ftpd.h | 2 ++ netutils/ftpd/ftpd.c | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/netutils/ftpd.h b/include/netutils/ftpd.h index 91bcb371a..1ebf8164e 100644 --- a/include/netutils/ftpd.h +++ b/include/netutils/ftpd.h @@ -27,6 +27,8 @@ #include <nuttx/config.h> +#include <sys/types.h> + #include <stdint.h> /**************************************************************************** diff --git a/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c index f5322f569..5dc40e5ed 100644 --- a/netutils/ftpd/ftpd.c +++ b/netutils/ftpd/ftpd.c @@ -64,7 +64,9 @@ #include <arpa/inet.h> -#include "fsutils/passwd.h" +#ifdef CONFIG_FTPD_LOGIN_PASSWD + #include "fsutils/passwd.h" +#endif #include "netutils/ftpd.h" @@ -2151,6 +2153,8 @@ static int ftpd_listbuffer(FAR struct ftpd_session_s *session, FAR struct stat *st, FAR char *buffer, size_t buflen, unsigned int opton) { + UNUSED(session); + FAR char *name; size_t offset = 0; @@ -4092,6 +4096,8 @@ static void ftpd_freesession(FAR struct ftpd_session_s *session) static void ftpd_workersetup(FAR struct ftpd_session_s *session) { + UNUSED(session); + #if defined(CONFIG_NET_HAVE_IPTOS) || defined(CONFIG_NET_HAVE_OOBINLINE) int temp; #endif