]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Remove __malloc attribute from para_realloc().
authorAndre Noll <maan@systemlinux.org>
Wed, 1 Jan 2014 20:14:42 +0000 (20:14 +0000)
committerAndre Noll <maan@systemlinux.org>
Sat, 22 Feb 2014 15:49:29 +0000 (16:49 +0100)
This attribute tells the compiler that the returned pointer cannot
alias any other pointer. This is not the case for para_realloc().

string.c

index 38e25b09c5f3ff2b289d6e943a0f7bde3bfc23ad..d22c4e644d6deb6b6b48b7561f86bde5ba22bce5 100644 (file)
--- a/string.c
+++ b/string.c
@@ -36,7 +36,7 @@
  *
  * \sa realloc(3).
  */
-__must_check __malloc void *para_realloc(void *p, size_t size)
+__must_check void *para_realloc(void *p, size_t size)
 {
        /*
         * No need to check for NULL pointers: If p is NULL, the call