From 0dfc33026e1445327954b8822afe4e44e82185ef Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 27 Jul 2012 15:08:05 +0200 Subject: lib/socket_wrapper: writev returns ssize_t, not int --- lib/socket_wrapper/socket_wrapper.c | 2 +- lib/socket_wrapper/socket_wrapper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 44d21fb3e1..3c9d0f1a9c 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/socket_wrapper.c @@ -2506,7 +2506,7 @@ int swrap_readv(int s, const struct iovec *vector, size_t count) return ret; } -int swrap_writev(int s, const struct iovec *vector, size_t count) +ssize_t swrap_writev(int s, const struct iovec *vector, size_t count) { struct msghdr msg; struct iovec tmp; diff --git a/lib/socket_wrapper/socket_wrapper.h b/lib/socket_wrapper/socket_wrapper.h index 32c9de6b68..bd8cdca53f 100644 --- a/lib/socket_wrapper/socket_wrapper.h +++ b/lib/socket_wrapper/socket_wrapper.h @@ -56,7 +56,7 @@ ssize_t swrap_recv(int s, void *buf, size_t len, int flags); ssize_t swrap_read(int s, void *buf, size_t len); ssize_t swrap_send(int s, const void *buf, size_t len, int flags); int swrap_readv(int s, const struct iovec *vector, size_t count); -int swrap_writev(int s, const struct iovec *vector, size_t count); +ssize_t swrap_writev(int s, const struct iovec *vector, size_t count); int swrap_close(int); int swrap_dup(int oldfd); int swrap_dup2(int oldfd, int newfd); -- cgit