diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-29 07:24:47 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-29 07:24:47 -0700 |
commit | c84defd9b6484dff60e513ad79e361c44aadcc0e (patch) | |
tree | 48ad695f79cd6f2124967f8c765029b80d327ba8 | |
parent | c168659d2b3376effcfee77acf4fc4a50c4ae787 (diff) | |
download | txr-c84defd9b6484dff60e513ad79e361c44aadcc0e.tar.gz txr-c84defd9b6484dff60e513ad79e361c44aadcc0e.tar.bz2 txr-c84defd9b6484dff60e513ad79e361c44aadcc0e.zip |
C++ fix in poll wrapper.
* sysif.c (poll_wrap): We must coerce mem_t * return value
of chk_calloc, not convert.
-rw-r--r-- | sysif.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |