mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
nshlib: Reuse nsh_session logic in nsh_telnetmain
to avoid the code duplication Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Alan Carvalho de Assis

parent
8e460e7e19
commit
75455d3788
@@ -71,7 +71,7 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
||||
|
||||
/* Execute the session */
|
||||
|
||||
ret = nsh_session(pstate, true, argc, argv);
|
||||
ret = nsh_session(pstate, NSH_LOGIN_LOCAL, argc, argv);
|
||||
|
||||
/* Exit upon return */
|
||||
|
||||
|
Reference in New Issue
Block a user