summaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
authorderaadt@openbsd.org <deraadt@openbsd.org>2015-04-24 01:36:00 +0000
committerDamien Miller <djm@mindrot.org>2015-04-29 18:15:23 +1000
commit657a5fbc0d0aff309079ff8fb386f17e964963c2 (patch)
tree942146a8381a12903fdfaec579b9ff2b2bf41406 /xmalloc.h
parent1108ae242fdd2c304307b68ddf46aebe43ebffaa (diff)
upstream commit
rename xrealloc() to xreallocarray() since it follows that form. ok djm
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmalloc.h b/xmalloc.h
index 261dfd612..2bec77ba8 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: xmalloc.h,v 1.14 2013/05/17 00:13:14 djm Exp $ */ 1/* $OpenBSD: xmalloc.h,v 1.15 2015/04/24 01:36:01 deraadt Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -18,7 +18,7 @@
18 18
19void *xmalloc(size_t); 19void *xmalloc(size_t);
20void *xcalloc(size_t, size_t); 20void *xcalloc(size_t, size_t);
21void *xrealloc(void *, size_t, size_t); 21void *xreallocarray(void *, size_t, size_t);
22char *xstrdup(const char *); 22char *xstrdup(const char *);
23int xasprintf(char **, const char *, ...) 23int xasprintf(char **, const char *, ...)
24 __attribute__((__format__ (printf, 2, 3))) 24 __attribute__((__format__ (printf, 2, 3)))