mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
7091417: recvfrom's 6th input should be of type socklen_t
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. Co-authored-by: Rickard Backman <rickard.backman@oracle.com> Co-authored-by: Nils Loodin <nils.loodin@oracle.com> Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com> Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
577403d2ca
commit
5657eb0c6c
12 changed files with 159 additions and 164 deletions
|
@ -1021,7 +1021,7 @@ int networkStream::read(char *buf, size_t len) {
|
|||
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue