From 5451214d0bcc5cf7987d83e636597eb410d79ec9 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Mon, 14 Feb 2022 11:37:30 +0800 Subject: [PATCH] ftpd: Remove usage of deprecated macro __NUTTX__ Signed-off-by: Huang Qi --- netutils/ftpd/ftpd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c index d6f5ac32f..5d341b75c 100644 --- a/netutils/ftpd/ftpd.c +++ b/netutils/ftpd/ftpd.c @@ -68,12 +68,6 @@ #include "ftpd.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#define __NUTTX__ 1 /* Flags some unusual NuttX dependencies */ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ @@ -2261,7 +2255,7 @@ static int ftpd_listbuffer(FAR struct ftpd_session_s *session, offset += snprintf(&buffer[offset], buflen - offset, "%s", str); -#ifdef __NUTTX__ +#ifdef __NuttX__ /* Fake nlink, user id, and group id */ offset += snprintf(&buffer[offset], buflen - offset, "%4u %8u %8u", @@ -2311,7 +2305,7 @@ static int ftpd_listbuffer(FAR struct ftpd_session_s *session, /* linkname */ -#ifndef __NUTTX__ +#ifndef __NuttX__ if (S_ISLNK(st->st_mode) != 0) { FAR char *temp;