From: Roland McGrath Date: Mon, 18 Jul 2005 01:15:31 +0000 (+0000) Subject: 2005-07-15 Andreas Jaeger X-Git-Tag: cvs/fedora-glibc-2_3-20050718T0425~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32c4e3d07b7307d9665af181f37f5fc409f57f74;p=thirdparty%2Fglibc.git 2005-07-15 Andreas Jaeger [BZ #1079] * include/stdlib.h: Remove malloc attribute from __posix_memalign. * stdlib/stdlib.h: Likewise. --- diff --git a/include/stdlib.h b/include/stdlib.h index 7723bf68561..49e87576f3c 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 1bda32262bc..cb19fcb03d8 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -614,7 +614,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__; #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)); + __THROW __nonnull ((1)); #endif __BEGIN_NAMESPACE_STD