]> sourceware.org Git - glibc.git/commitdiff
stdlib.h: use existing malloc/alloc_size attribute defines
authorMike Frysinger <vapier@gentoo.org>
Sat, 29 Dec 2012 21:49:53 +0000 (16:49 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 18 Feb 2013 22:19:00 +0000 (17:19 -0500)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ChangeLog
stdlib/stdlib.h

index 12559ab9dfaf51ab53e056b11d5ad93a2a8bba2f..16085476ea09b7084fb175ac4228797dfd658488 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-18  Mike Frysinger  <vapier@gentoo.org>
+
+       * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
+       and __attribute_alloc_size__.
+
 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
 
        * include/programs/xmalloc.h: Change __attribute_alloc_size to
index fa1175c028b5a60e201d50c1f949c3b710da14d5..f7a818aa659b490240fa5916d6c91d549c458aba 100644 (file)
@@ -507,7 +507,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
This page took 0.113581 seconds and 5 git commands to generate.