summaryrefslogtreecommitdiffstats
path: root/bin/csh/alloc.c
diff options
context:
space:
mode:
authormiko <miko@openbsd.org>2018-09-18 02:29:10 +0000
committermiko <miko@openbsd.org>2018-09-18 02:29:10 +0000
commitfb86b9ff865c612b838dd1fbc0cc62591021b191 (patch)
treeed70f168caa01d2b2c7020e4ac42d490dacbe111 /bin/csh/alloc.c
parentfix order of arguments in fmt.Printf() (diff)
downloadwireguard-openbsd-fb86b9ff865c612b838dd1fbc0cc62591021b191.tar.xz
wireguard-openbsd-fb86b9ff865c612b838dd1fbc0cc62591021b191.zip
remove macros for xmalloc(), xcalloc() & xreallocarray() and just name the
functions that. ok millert@ martijn@
Diffstat (limited to 'bin/csh/alloc.c')
-rw-r--r--bin/csh/alloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/csh/alloc.c b/bin/csh/alloc.c
index 9fec5a43b7f..c5d33636223 100644
--- a/bin/csh/alloc.c
+++ b/bin/csh/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.17 2015/12/26 13:48:38 mestre Exp $ */
+/* $OpenBSD: alloc.c,v 1.18 2018/09/18 02:29:10 miko Exp $ */
/* $NetBSD: alloc.c,v 1.6 1995/03/21 09:02:23 cgd Exp $ */
/*-
@@ -39,7 +39,7 @@
#include "extern.h"
void *
-Malloc(size_t n)
+xmalloc(size_t n)
{
void *ptr;
@@ -51,7 +51,7 @@ Malloc(size_t n)
}
void *
-Reallocarray(void * p, size_t c, size_t n)
+xreallocarray(void * p, size_t c, size_t n)
{
void *ptr;
@@ -63,7 +63,7 @@ Reallocarray(void * p, size_t c, size_t n)
}
void *
-Calloc(size_t s, size_t n)
+xcalloc(size_t s, size_t n)
{
void *ptr;