Changeset 16819 in vbox
- Timestamp:
- Feb 17, 2009 9:10:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/tcp_subr.c
r16812 r16819 498 498 499 499 optlen = sizeof(int); 500 status = getsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, &optlen);500 status = getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&opt, &optlen); 501 501 if (status < 0) 502 502 { … … 507 507 LogRel(("NAT: old socket rcv size: %dKB\n", opt / 1024)); 508 508 opt *= 4; 509 status = setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(int));509 status = setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&opt, sizeof(int)); 510 510 if (status < 0) 511 511 { … … 514 514 } 515 515 optlen = sizeof(int); 516 status = getsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, &optlen);516 status = getsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&opt, &optlen); 517 517 if (status < 0) 518 518 { … … 523 523 LogRel(("NAT: old socket snd size: %dKB\n", opt / 1024)); 524 524 opt *= 4; 525 status = setsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(int));525 status = setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&opt, sizeof(int)); 526 526 if (status < 0) 527 527 {
Note:
See TracChangeset
for help on using the changeset viewer.