diff options
Diffstat (limited to 'apps/netutils/ftpc/ftpc_listdir.c')
-rw-r--r-- | apps/netutils/ftpc/ftpc_listdir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/netutils/ftpc/ftpc_listdir.c b/apps/netutils/ftpc/ftpc_listdir.c index 2b7706fc1..6ec70a0d9 100644 --- a/apps/netutils/ftpc/ftpc_listdir.c +++ b/apps/netutils/ftpc/ftpc_listdir.c @@ -81,7 +81,7 @@ typedef void (*callback_t)(FAR const char *name, FAR void *arg); ****************************************************************************/ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session, - FAR const char *relpath); + FAR const char *relpath) { FAR char *ptr = NULL; int ret = OK; @@ -101,7 +101,7 @@ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session, if (relpath[1] == '\0') { - return strdup(session->home); + return strdup(session->homedir); } /* No... then a '/' better follow the tilde */ @@ -155,7 +155,7 @@ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session, static void ftpc_dircount(FAR const char *name, FAR void *arg) { - unsigned int *dircount = (unsigned int *)arg; + FAR unsigned int *dircount = (FAR unsigned int *)arg; (*dircount)++; } |