From c84defd9b6484dff60e513ad79e361c44aadcc0e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 29 Sep 2015 07:24:47 -0700 Subject: C++ fix in poll wrapper. * sysif.c (poll_wrap): We must coerce mem_t * return value of chk_calloc, not convert. --- sysif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sysif.c') diff --git a/sysif.c b/sysif.c index 6f6ce7c0..c8931895 100644 --- a/sysif.c +++ b/sysif.c @@ -711,8 +711,7 @@ static val poll_wrap(val poll_list, val timeout_in) { nfds_t i, len = c_num(length(poll_list)); val iter; - struct pollfd *pfd = convert(struct pollfd *, - chk_calloc(len, sizeof *pfd)); + struct pollfd *pfd = coerce(struct pollfd *, chk_calloc(len, sizeof *pfd)); val timeout = default_arg(timeout_in, negone); int res; -- cgit v1.2.3