Mercurial > hg > truffle
diff src/share/vm/utilities/ostream.cpp @ 4717:11c26bfcf8c7
7091417: recvfrom's 6th input should be of type socklen_t
Summary: Revamp class os's socket method formal args to match socket.h, insert casts in appropriate places, and copyin-copyout int*'s that s/b socklen_t*'s in jvm.cpp.
Reviewed-by: coleenp, dholmes
Contributed-by: erik.gahlin@oracle.com, rickard.backman@oracle.com, nils.loodin@oracle.com, markus.gronlund@oracle.com
author | phh |
---|---|
date | Wed, 21 Dec 2011 15:48:16 -0500 |
parents | f08d439fab8c |
children | f2d2fb93daad d2a62e0f25eb |
line wrap: on
line diff
--- a/src/share/vm/utilities/ostream.cpp Mon Dec 19 21:38:51 2011 -0800 +++ b/src/share/vm/utilities/ostream.cpp Wed Dec 21 15:48:16 2011 -0500 @@ -1021,7 +1021,7 @@ void networkStream::flush() { if (size() != 0) { - int result = os::raw_send(_socket, (char *)base(), (int)size(), 0); + int result = os::raw_send(_socket, (char *)base(), size(), 0); assert(result != -1, "connection error"); assert(result == (int)size(), "didn't send enough data"); }