Fixed compiler warnings.

This commit is contained in:
Fotis Panagiotopoulos
2022-08-22 16:17:00 +03:00
committed by Xiang Xiao
parent d1cbbcdb41
commit 0cdb2cfa48
21 changed files with 128 additions and 18 deletions

View File

@@ -44,6 +44,8 @@
#ifndef CONFIG_NSH_DISABLE_USERADD
int cmd_useradd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
{
UNUSED(argc);
int ret;
ret = passwd_adduser(argv[1], argv[2]);
@@ -65,6 +67,8 @@ int cmd_useradd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
#ifndef CONFIG_NSH_DISABLE_USERDEL
int cmd_userdel(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
{
UNUSED(argc);
int ret;
ret = passwd_deluser(argv[1]);
@@ -86,6 +90,8 @@ int cmd_userdel(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
#ifndef CONFIG_NSH_DISABLE_PASSWD
int cmd_passwd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
{
UNUSED(argc);
int ret;
ret = passwd_update(argv[1], argv[2]);