Fix some compile errors introduce in last commits

This commit is contained in:
Gregory Nutt 2014-11-13 07:44:45 -06:00
parent bc265d74e7
commit 838f2053e4
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,9 @@
#include <nuttx/config.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#ifdef CONFIG_LIBC_EXECFUNCS
@ -155,7 +157,7 @@ int execl(FAR const char *path, ...)
if (nargs > 0)
{
argv = (FAR char **)malloc((nargs + 1) * sizeof(FAR char *));
if (argv = (FAR char **)NULL)
if (argv == (FAR char **)NULL)
{
set_errno(ENOMEM);
return ERROR;

View File

@ -496,7 +496,7 @@ static inline int task_stackargsetup(FAR struct task_tcb_s *tcb,
*/
strtablen += (strlen(argv[argc]) + 1);
if (strtablen >= tcb->adj_stack_size)
if (strtablen >= tcb->cmn.adj_stack_size)
{
return -ENAMETOOLONG;
}