diff options
author | 2014-10-17 06:17:37 +0000 | |
---|---|---|
committer | 2014-10-17 06:17:37 +0000 | |
commit | 38fe9cb3b42471fc96c1477bf2daf14c24cf8d1b (patch) | |
tree | 8853bb77129628bdbcf45f7d513969039508d736 /bin/csh/alloc.c | |
parent | Remove chunk special-casing malloc(siz) for realloc(NULL, siz). Bit (diff) | |
download | wireguard-openbsd-38fe9cb3b42471fc96c1477bf2daf14c24cf8d1b.tar.xz wireguard-openbsd-38fe9cb3b42471fc96c1477bf2daf14c24cf8d1b.zip |
no need for realloc() front ends anymore
Diffstat (limited to 'bin/csh/alloc.c')
-rw-r--r-- | bin/csh/alloc.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/bin/csh/alloc.c b/bin/csh/alloc.c index 3683e2fc514..9fcb27bd2d0 100644 --- a/bin/csh/alloc.c +++ b/bin/csh/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.12 2014/10/16 19:43:31 deraadt Exp $ */ +/* $OpenBSD: alloc.c,v 1.13 2014/10/17 06:17:37 deraadt Exp $ */ /* $NetBSD: alloc.c,v 1.6 1995/03/21 09:02:23 cgd Exp $ */ /*- @@ -51,18 +51,6 @@ Malloc(size_t n) } ptr_t -Realloc(ptr_t p, size_t n) -{ - ptr_t ptr; - - if ((ptr = realloc(p, n)) == (ptr_t) 0) { - child++; - stderror(ERR_NOMEM); - } - return (ptr); -} - -ptr_t Reallocarray(ptr_t p, size_t c, size_t n) { ptr_t ptr; |