mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 17:32:09 +08:00
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user