diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-07-27 13:18:28 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-07-27 13:18:28 +0400 |
commit | 883861544a879eb161b1186ba6c62335a923aaca (patch) | |
tree | 584390e992f4c81d9e91af44bf749f83c3d6d4c6 /winsup/cygwin/fhandler_socket.cc | |
parent | 9869e006f3ac34d7bd67fb6327f3605725995abc (diff) |
* fhandler_socket.cc (fhandler_socket::recvmsg): Remove unused tot
argument. All callers changed.
(fhandler_socket::sendmsg): Likewise.
* net.cc (cygwin_recvmsg): Likewise.
(cygwin_sendmsg): Likewise, and prevent calling sendmsg whith an
invalid iovec.
* fhandler.h (fhandler_socket::recvmsg): Adjust prototype.
(fhandler_socket::sendmsg): Likewise.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index a6f760a9b..760dbc456 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -1153,7 +1153,7 @@ fhandler_socket::readv (const struct iovec *const iov, const int iovcnt, msg_flags: 0 }; - return recvmsg (&msg, 0, tot); + return recvmsg (&msg, 0); } inline ssize_t @@ -1217,7 +1217,7 @@ fhandler_socket::recvfrom (void *ptr, size_t len, int flags, } int -fhandler_socket::recvmsg (struct msghdr *msg, int flags, ssize_t tot) +fhandler_socket::recvmsg (struct msghdr *msg, int flags) { if (CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR) ((struct OLD_msghdr *) msg)->msg_accrightslen = 0; @@ -1266,7 +1266,7 @@ fhandler_socket::writev (const struct iovec *const iov, const int iovcnt, msg_flags: 0 }; - return sendmsg (&msg, 0, tot); + return sendmsg (&msg, 0); } inline ssize_t @@ -1324,7 +1324,7 @@ fhandler_socket::sendto (const void *ptr, size_t len, int flags, } int -fhandler_socket::sendmsg (const struct msghdr *msg, int flags, ssize_t tot) +fhandler_socket::sendmsg (const struct msghdr *msg, int flags) { if (get_addr_family () == AF_LOCAL) { |