summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-04-22 14:26:27 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-04-22 14:26:27 +0000
commit1e7c1a49a6919c7e8b5860f39946cafc2352bf8d (patch)
treefd36aaa467d9bc57a55c15861b14b1d8ee71d658 /include
parentc0c1d1856bb3b7b90939e7bf1ed559a3a4f0a0fe (diff)
change mallocarray to reallocarray. useful in a few more situations.
malloc can, as always, be emulated via realloc(NULL). ok deraadt
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 93eddce71ab..71bb9f4fc87 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.57 2014/04/21 13:17:32 deraadt Exp $ */
+/* $OpenBSD: stdlib.h,v 1.58 2014/04/22 14:26:26 tedu Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -125,7 +125,7 @@ long labs(long);
ldiv_t ldiv(long, long);
void *malloc(size_t);
#if __BSD_VISIBLE
-void *mallocarray(size_t, size_t);
+void *reallocarray(void *, size_t, size_t);
#endif /* __BSD_VISIBLE */
void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
int rand(void);