summaryrefslogtreecommitdiffstats
path: root/lib/libedit/sig.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-10-17 06:07:50 +0000
committerderaadt <deraadt@openbsd.org>2014-10-17 06:07:50 +0000
commit014b1be8e77af715a19974acd738d56ba2e3587d (patch)
tree57fcee9bf06edaf401c1d3bda9415c135b02cb20 /lib/libedit/sig.c
parentIn the new world order, setperf does not exist on ramdisks. (diff)
downloadwireguard-openbsd-014b1be8e77af715a19974acd738d56ba2e3587d.tar.xz
wireguard-openbsd-014b1be8e77af715a19974acd738d56ba2e3587d.zip
Remove non-exposed malloc/realloc/free wrappers, and then substitute
reallocarray() where it helps. ok doug
Diffstat (limited to 'lib/libedit/sig.c')
-rw-r--r--lib/libedit/sig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libedit/sig.c b/lib/libedit/sig.c
index b36e0725d10..05562b8a3cc 100644
--- a/lib/libedit/sig.c
+++ b/lib/libedit/sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sig.c,v 1.13 2011/06/03 23:34:56 deraadt Exp $ */
+/* $OpenBSD: sig.c,v 1.14 2014/10/17 06:07:50 deraadt Exp $ */
/* $NetBSD: sig.c,v 1.15 2009/02/19 15:20:22 christos Exp $ */
/*-
@@ -111,7 +111,7 @@ sig_init(EditLine *el)
size_t i;
sigset_t *nset, oset;
- el->el_signal = el_malloc(sizeof(*el->el_signal));
+ el->el_signal = malloc(sizeof(*el->el_signal));
if (el->el_signal == NULL)
return -1;
@@ -141,7 +141,7 @@ protected void
sig_end(EditLine *el)
{
- el_free((ptr_t) el->el_signal);
+ free((ptr_t) el->el_signal);
el->el_signal = NULL;
}