Correct alloc_size annotation on reallocarray()

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
This commit is contained in:
Jon Turney 2018-03-12 19:54:11 +00:00 committed by Yaakov Selkowitz
parent 4d1a356f7b
commit 4564b30f33
1 changed files with 1 additions and 2 deletions

View File

@ -140,8 +140,7 @@ void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t _compar);
int rand (void); int rand (void);
void * realloc (void *__r, size_t __size) _NOTHROW; void * realloc (void *__r, size_t __size) _NOTHROW;
#if __BSD_VISIBLE #if __BSD_VISIBLE
void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2) void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size((2,3));
__alloc_size(3);
void * reallocf (void *__r, size_t __size); void * reallocf (void *__r, size_t __size);
#endif #endif
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 #if __BSD_VISIBLE || __XSI_VISIBLE >= 4