diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-05 20:54:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-05 20:54:00 +0000 |
commit | 16be59858afa332cc8a0f8e61a215e1deea5e897 (patch) | |
tree | 0159742e27848cfac6eec8d9d87bd6579af48c18 /nuttx/lib/stdio | |
parent | 3607bf2b4b1f2087cfb52ab4591f2ac347698a9c (diff) | |
download | px4-nuttx-16be59858afa332cc8a0f8e61a215e1deea5e897.tar.gz px4-nuttx-16be59858afa332cc8a0f8e61a215e1deea5e897.tar.bz2 px4-nuttx-16be59858afa332cc8a0f8e61a215e1deea5e897.zip |
Clean kernel-/user-mode module build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3469 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/stdio')
-rwxr-xr-x | nuttx/lib/stdio/lib_dtoa.c | 5 | ||||
-rw-r--r-- | nuttx/lib/stdio/lib_fclose.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/lib/stdio/lib_dtoa.c b/nuttx/lib/stdio/lib_dtoa.c index 942ed2033..894af4f42 100755 --- a/nuttx/lib/stdio/lib_dtoa.c +++ b/nuttx/lib/stdio/lib_dtoa.c @@ -45,10 +45,11 @@ #include <nuttx/config.h> -#include <stdlib.h> #include <stdint.h> #include <string.h> +#include "lib_internal.h" + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -142,7 +143,7 @@ static Bigint *Balloc(int k) else { x = 1 << k; - rv = (Bigint *) malloc(sizeof(Bigint) + (x - 1) * sizeof(long)); + rv = (Bigint *)lib_malloc(sizeof(Bigint) + (x - 1) * sizeof(long)); rv->k = k; rv->maxwds = x; } diff --git a/nuttx/lib/stdio/lib_fclose.c b/nuttx/lib/stdio/lib_fclose.c index 4a9ded90b..8d53b387b 100644 --- a/nuttx/lib/stdio/lib_fclose.c +++ b/nuttx/lib/stdio/lib_fclose.c @@ -39,12 +39,13 @@ #include <nuttx/config.h> -#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> +#include "lib_internal.h" + /**************************************************************************** * Global Functions ****************************************************************************/ @@ -68,7 +69,7 @@ int fclose(FAR FILE *stream) if (stream->fs_bufstart) { - free(stream->fs_bufstart); + lib_free(stream->fs_bufstart); } /* Clear the whole structure */ |