From c5706e59a0621fbf9256c0a47a70b08359352aa7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 12 Sep 2014 17:09:18 -0600 Subject: Fix more errors associated with posix_spawn system calls --- apps/nshlib/nsh_console.c | 1 + apps/nshlib/nsh_consolemain.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/nshlib') diff --git a/apps/nshlib/nsh_console.c b/apps/nshlib/nsh_console.c index 9b78258c4..0910f76f1 100644 --- a/apps/nshlib/nsh_console.c +++ b/apps/nshlib/nsh_console.c @@ -487,5 +487,6 @@ FAR struct console_stdio_s *nsh_newconsole(void) pstate->cn_outstream = OUTSTREAM(pstate); #endif } + return pstate; } diff --git a/apps/nshlib/nsh_consolemain.c b/apps/nshlib/nsh_consolemain.c index a8e7bd72a..ec3f1c673 100644 --- a/apps/nshlib/nsh_consolemain.c +++ b/apps/nshlib/nsh_consolemain.c @@ -94,7 +94,7 @@ * Returned Values: * This function does not normally return. exit() is usually called to * terminate the NSH session. This function will return in the event of - * an error. In that case, a nonzero value is returned (EXIT_FAILURE=1). + * an error. In that case, a non-zero value is returned (EXIT_FAILURE=1). * ****************************************************************************/ -- cgit v1.2.3