Mercurial > dropbear
diff cli-agentfwd.c @ 1323:83d85b28b353
upgrade atomicio
in order to remove K&R code in atomicio.c
now, vwrite comes from atomicio.h
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Fri, 25 Mar 2016 12:05:17 +0100 |
parents | 750ec4ec4cbe |
children | 06d52bcb8094 |
line wrap: on
line diff
--- a/cli-agentfwd.c Fri Mar 25 07:57:19 2016 +0100 +++ b/cli-agentfwd.c Fri Mar 25 12:05:17 2016 +0100 @@ -130,7 +130,7 @@ } buf_setpos(payload, 0); - ret = atomicio(write, fd, buf_getptr(payload, payload->len), payload->len); + ret = atomicio(vwrite, fd, buf_getptr(payload, payload->len), payload->len); if ((size_t)ret != payload->len) { TRACE(("write failed fd %d for agent_request, %s", fd, strerror(errno))) goto out;