summaryrefslogtreecommitdiff
path: root/nuttx/lib/misc/lib_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/lib/misc/lib_init.c')
-rw-r--r--nuttx/lib/misc/lib_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/lib/misc/lib_init.c b/nuttx/lib/misc/lib_init.c
index 107c73c07..112b0a3c7 100644
--- a/nuttx/lib/misc/lib_init.c
+++ b/nuttx/lib/misc/lib_init.c
@@ -40,7 +40,6 @@
#include <nuttx/config.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <errno.h>
@@ -83,7 +82,7 @@ void weak_const_function lib_initialize(void)
FAR struct streamlist *lib_alloclist(void)
{
FAR struct streamlist *list;
- list = (FAR struct streamlist*)zalloc(sizeof(struct streamlist));
+ list = (FAR struct streamlist*)lib_zalloc(sizeof(struct streamlist));
if (list)
{
int i;