summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/stdlib.h4
-rw-r--r--stdlib/stdlib.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 7723bf6856..49e87576f3 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -95,8 +95,8 @@ extern int __cxa_atexit_internal (void (*func) (void *), void *arg, void *d)
 
 extern void __cxa_finalize (void *d);
 
-extern int __posix_memalign (void **memptr, size_t alignment, size_t size)
-     __attribute_malloc__;
+extern int __posix_memalign (void **memptr, size_t alignment, size_t size);
+
 extern void *__libc_memalign (size_t alignment, size_t size)
      __attribute_malloc__;
 
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 9e75e71ed6..bff7722e2c 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -618,7 +618,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
 #ifdef __USE_XOPEN2K
 /* Allocate memory of SIZE bytes with an alignment of ALIGNMENT.  */
 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
-     __THROW __attribute_malloc__ __nonnull ((1)) __wur;
+     __THROW __nonnull ((1)) __wur;
 #endif
 
 __BEGIN_NAMESPACE_STD