diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-18 21:42:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-18 21:42:41 +0000 |
commit | 02aaec7647607e96532b93083557412daca02285 (patch) | |
tree | 3c43da9ca1d68b69d0d5d596176d1314e8e895ac /cpukit/libnetworking/rtems/rtems_malloc_mbuf.c | |
parent | 2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-02aaec7647607e96532b93083557412daca02285.tar.bz2 |
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/lib/ftpfs.c, libnetworking/libc/inet_ntoa.c,
libnetworking/libc/rcmd.c, libnetworking/nfs/bootp_subr.c,
libnetworking/rtems/rtems_glue.c,
libnetworking/rtems/rtems_malloc_mbuf.c,
libnetworking/rtems/rtems_showicmpstat.c, libnetworking/sys/malloc.h:
Fix some warnings.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_malloc_mbuf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c b/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c index ca7f527614..628d7dc23f 100644 --- a/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c +++ b/cpukit/libnetworking/rtems/rtems_malloc_mbuf.c @@ -21,13 +21,18 @@ #include <rtems/rtems_bsdnet.h> /* + * We want to use the REAL system malloc. Do not let the BSD malloc macro + * invade this file. + */ +extern void *malloc(size_t); + +/* * Default allocator for mbuf data. Over-ride in user code to change * the way mbuf's are allocated. */ void* rtems_bsdnet_malloc_mbuf(size_t size, int type) { - extern void *malloc(size_t); return malloc(size); } |