mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Clean kernel-/user-mode module build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3469 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+2
-2
@@ -40,12 +40,12 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <semaphore.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/fs.h>
|
||||
|
||||
/****************************************************************************
|
||||
@@ -145,7 +145,7 @@ FAR struct file_struct *fs_fdopen(int fd, int oflags, FAR _TCB *tcb)
|
||||
|
||||
/* Allocate the IO buffer */
|
||||
|
||||
stream->fs_bufstart = malloc(CONFIG_STDIO_BUFFER_SIZE);
|
||||
stream->fs_bufstart = kmalloc(CONFIG_STDIO_BUFFER_SIZE);
|
||||
if (!stream)
|
||||
{
|
||||
err = ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user