diff options
| author | 2014-10-17 06:07:50 +0000 | |
|---|---|---|
| committer | 2014-10-17 06:07:50 +0000 | |
| commit | 014b1be8e77af715a19974acd738d56ba2e3587d (patch) | |
| tree | 57fcee9bf06edaf401c1d3bda9415c135b02cb20 /lib/libedit/sig.c | |
| parent | In the new world order, setperf does not exist on ramdisks. (diff) | |
| download | wireguard-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.c | 6 |
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; } |
