diff options
author | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-08-20 20:29:50 +0200 |
---|---|---|
committer | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-08-20 20:29:50 +0200 |
commit | 6f61e254dc801da7fab388ed4791ac9de73aaeba (patch) | |
tree | b667f16939c7f5eaddce72d75b3153190597bc68 /src | |
parent | 347ab9b8c2b13c76ac964bd88e60d632a196a509 (diff) | |
download | ipxe-6f61e254dc801da7fab388ed4791ac9de73aaeba.zip ipxe-6f61e254dc801da7fab388ed4791ac9de73aaeba.tar.gz ipxe-6f61e254dc801da7fab388ed4791ac9de73aaeba.tar.bz2 |
use malloc attribute
Diffstat (limited to 'src')
-rw-r--r-- | src/include/stdlib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 5c8fc3d..ae99696 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -20,10 +20,10 @@ extern unsigned long strtoul ( const char *p, char **endp, int base ); **************************************************************************** */ -extern void * malloc ( size_t size ); +extern void * __malloc malloc ( size_t size ); extern void * realloc ( void *old_ptr, size_t new_size ); extern void free ( void *ptr ); -extern void * zalloc ( size_t len ); +extern void * __malloc zalloc ( size_t len ); /** * Allocate cleared memory @@ -38,7 +38,7 @@ extern void * zalloc ( size_t len ); * function in zalloc(), since in most cases @c nmemb will be 1 and * doing the multiply is just wasteful. */ -static inline void * calloc ( size_t nmemb, size_t size ) { +static inline void * __malloc calloc ( size_t nmemb, size_t size ) { return zalloc ( nmemb * size ); } |