summaryrefslogtreecommitdiff
path: root/apps/examples/ftpc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
commit797e41438176de465272bef182e035cd0fe5884a (patch)
tree3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/examples/ftpc
parent6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff)
downloadnuttx-797e41438176de465272bef182e035cd0fe5884a.tar.gz
nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.bz2
nuttx-797e41438176de465272bef182e035cd0fe5884a.zip
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'apps/examples/ftpc')
-rw-r--r--apps/examples/ftpc/ftpc_cmds.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/examples/ftpc/ftpc_cmds.c b/apps/examples/ftpc/ftpc_cmds.c
index df05f45d2..d5dba926a 100644
--- a/apps/examples/ftpc/ftpc_cmds.c
+++ b/apps/examples/ftpc/ftpc_cmds.c
@@ -116,6 +116,7 @@ int cmd_rpwd(SESSION handle, int argc, char **argv)
free(pwd);
return OK;
}
+
return ERROR;
}
@@ -275,6 +276,7 @@ int cmd_rls(SESSION handle, int argc, char **argv)
{
printf(" %s\n", dirlist->name[i]);
}
+
FFLUSH();
/* We are responsible for freeing the directory structure allocated by
@@ -308,7 +310,7 @@ int cmd_rget(SESSION handle, int argc, char **argv)
}
else
{
- printf("%s: Unrecognized option: '%c'\n", "put", option);
+ printf("%s: Unrecognized option: '%c'\n", "rget", option);
return ERROR;
}
}
@@ -317,7 +319,7 @@ int cmd_rget(SESSION handle, int argc, char **argv)
if (optind >= argc)
{
- printf("%s: Missing required arguments\n", "get");
+ printf("%s: Missing required arguments\n", "rget");
return ERROR;
}
@@ -332,7 +334,7 @@ int cmd_rget(SESSION handle, int argc, char **argv)
if (optind != argc)
{
- printf("%s: Too many arguments\n", "get");
+ printf("%s: Too many arguments\n", "rget");
return ERROR;
}
@@ -364,7 +366,7 @@ int cmd_rput(SESSION handle, int argc, char **argv)
}
else
{
- printf("%s: Unrecognized option: '%c'\n", "put", option);
+ printf("%s: Unrecognized option: '%c'\n", "rput", option);
return ERROR;
}
}
@@ -373,7 +375,7 @@ int cmd_rput(SESSION handle, int argc, char **argv)
if (optind >= argc)
{
- printf("%s: Missing required arguments\n", "get");
+ printf("%s: Missing required arguments\n", "rput");
return ERROR;
}
@@ -388,7 +390,7 @@ int cmd_rput(SESSION handle, int argc, char **argv)
if (optind != argc)
{
- printf("%s: Too many arguments\n ");
+ printf("%s: Too many arguments\n", "rput");
return ERROR;
}