Skip to content

Commit e3a9be0

Browse files
Fotis Panagiotopoulosxiaoxiang781216
authored andcommitted
Minor changes in ftpd.
1 parent 3d0a49f commit e3a9be0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

include/netutils/ftpd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
#include <nuttx/config.h>
2929

30+
#include <sys/types.h>
31+
3032
#include <stdint.h>
3133

3234
/****************************************************************************

netutils/ftpd/ftpd.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464

6565
#include <arpa/inet.h>
6666

67-
#include "fsutils/passwd.h"
67+
#ifdef CONFIG_FTPD_LOGIN_PASSWD
68+
#include "fsutils/passwd.h"
69+
#endif
6870

6971
#include "netutils/ftpd.h"
7072

@@ -2151,6 +2153,8 @@ static int ftpd_listbuffer(FAR struct ftpd_session_s *session,
21512153
FAR struct stat *st, FAR char *buffer,
21522154
size_t buflen, unsigned int opton)
21532155
{
2156+
UNUSED(session);
2157+
21542158
FAR char *name;
21552159
size_t offset = 0;
21562160

@@ -4092,6 +4096,8 @@ static void ftpd_freesession(FAR struct ftpd_session_s *session)
40924096

40934097
static void ftpd_workersetup(FAR struct ftpd_session_s *session)
40944098
{
4099+
UNUSED(session);
4100+
40954101
#if defined(CONFIG_NET_HAVE_IPTOS) || defined(CONFIG_NET_HAVE_OOBINLINE)
40964102
int temp;
40974103
#endif

0 commit comments

Comments
 (0)