OSDN Git Service

* fhandler_socket.cc (fhandler_socket::recvfrom): Initialize res to
authorcorinna <corinna>
Wed, 31 Mar 2004 09:13:52 +0000 (09:13 +0000)
committercorinna <corinna>
Wed, 31 Mar 2004 09:13:52 +0000 (09:13 +0000)
commite294dc4a5010559d5d1b40297ac6e1f1f8f5df4e
tree6f4eb5318ec4e6c0b3cfeac15bd2946cee71a74c
parent3510934c090dff9c70a0b83c98c3e66d2281c8da
* fhandler_socket.cc (fhandler_socket::recvfrom): Initialize res to
SOCKET_ERROR.  Use SOCKET_ERROR instead of -1 throughout.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* net.cc (wsock_event::prepare): Call WSASetLastError instead of
SetLastError.
(wsock_event::wait): Use SOCKET_ERROR instead of -1.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_socket.cc
winsup/cygwin/net.cc