mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
Fix some compile errors introduce in last commits
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user