projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6f02e0
)
Remove __malloc attribute from para_realloc().
author
Andre Noll
<maan@systemlinux.org>
Wed, 1 Jan 2014 20:14:42 +0000
(20:14 +0000)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/string.c
b/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