This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/3] stdlib.h: use existing malloc/alloc_size attribute defines


Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2012-12-30  Mike Frysinger  <vapier@gentoo.org>

	* stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
	and __attribute_alloc_size__.
---
 stdlib/stdlib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index fc83f4e..491c65c 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -506,7 +506,7 @@ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
 #ifdef __USE_ISOC11
 /* ISO C variant of aligned allocation.  */
 extern void *aligned_alloc (size_t __alignment, size_t __size)
-     __THROW __wur __attribute__ ((__malloc__, __alloc_size__ (2)));
+     __THROW __attribute_malloc__ __attribute_alloc_size__ (2) __wur;
 #endif
 
 __BEGIN_NAMESPACE_STD
-- 
1.8.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]