summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-03-12 19:54:11 +0000
committerYaakov Selkowitz <yselkowi@redhat.com>2018-03-13 09:04:56 -0500
commit4564b30f331a067e71b25308ac7c8a85ceb4b122 (patch)
tree2a32fd62f8871e30101699a29ac72a8e503468f6
parent4d1a356f7b36905f5e2b616513b111ef042f1a43 (diff)
downloadcygnal-4564b30f331a067e71b25308ac7c8a85ceb4b122.tar.gz
cygnal-4564b30f331a067e71b25308ac7c8a85ceb4b122.tar.bz2
cygnal-4564b30f331a067e71b25308ac7c8a85ceb4b122.zip
Correct alloc_size annotation on reallocarray()
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
-rw-r--r--newlib/libc/include/stdlib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index ef0e4bdda..593760a12 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -140,8 +140,7 @@ void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t _compar);
int rand (void);
void * realloc (void *__r, size_t __size) _NOTHROW;
#if __BSD_VISIBLE
-void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2)
- __alloc_size(3);
+void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size((2,3));
void * reallocf (void *__r, size_t __size);
#endif
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4