VirtualBox

Changeset 16819 in vbox


Ignore:
Timestamp:
Feb 17, 2009 9:10:09 AM (16 years ago)
Author:
vboxsync
Message:

NAT:warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r16812 r16819  
    498498
    499499    optlen = sizeof(int);
    500     status = getsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, &optlen);
     500    status = getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&opt, &optlen);
    501501    if (status < 0)
    502502    {
     
    507507        LogRel(("NAT: old socket rcv size: %dKB\n", opt / 1024));
    508508    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));
    510510    if (status < 0)
    511511    {
     
    514514    }
    515515    optlen = sizeof(int);
    516     status = getsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, &optlen);
     516    status = getsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&opt, &optlen);
    517517    if (status < 0)
    518518    {
     
    523523        LogRel(("NAT: old socket snd size: %dKB\n", opt / 1024));
    524524    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));
    526526    if (status < 0)
    527527    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette