summaryrefslogtreecommitdiffhomepage
path: root/cli-agentfwd.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2016-03-25 12:05:17 +0100
committerFrancois Perrad <francois.perrad@gadz.org>2016-11-15 14:56:25 +0100
commitecb4a6173df40a887fee2e8198e5c8985e2ca5e5 (patch)
tree2f67d2d4402413e488f6f1d873874c73b13c9141 /cli-agentfwd.c
parent37a66fa5b64ba36285abd346fc8706e6bef4be31 (diff)
upgrade atomicio
in order to remove K&R code in atomicio.c now, vwrite comes from atomicio.h
Diffstat (limited to 'cli-agentfwd.c')
-rw-r--r--cli-agentfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-agentfwd.c b/cli-agentfwd.c
index 5b0ea81..bdca3ea 100644
--- a/cli-agentfwd.c
+++ b/cli-agentfwd.c
@@ -130,7 +130,7 @@ static buffer * agent_request(unsigned char type, buffer *data) {
}
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;