ftpd: Remove usage of deprecated macro __NUTTX__
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
e317d32fe1
commit
5451214d0b
@ -68,12 +68,6 @@
|
|||||||
|
|
||||||
#include "ftpd.h"
|
#include "ftpd.h"
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#define __NUTTX__ 1 /* Flags some unusual NuttX dependencies */
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Function Prototypes
|
* 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);
|
offset += snprintf(&buffer[offset], buflen - offset, "%s", str);
|
||||||
|
|
||||||
#ifdef __NUTTX__
|
#ifdef __NuttX__
|
||||||
/* Fake nlink, user id, and group id */
|
/* Fake nlink, user id, and group id */
|
||||||
|
|
||||||
offset += snprintf(&buffer[offset], buflen - offset, "%4u %8u %8u",
|
offset += snprintf(&buffer[offset], buflen - offset, "%4u %8u %8u",
|
||||||
@ -2311,7 +2305,7 @@ static int ftpd_listbuffer(FAR struct ftpd_session_s *session,
|
|||||||
|
|
||||||
/* linkname */
|
/* linkname */
|
||||||
|
|
||||||
#ifndef __NUTTX__
|
#ifndef __NuttX__
|
||||||
if (S_ISLNK(st->st_mode) != 0)
|
if (S_ISLNK(st->st_mode) != 0)
|
||||||
{
|
{
|
||||||
FAR char *temp;
|
FAR char *temp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user