VirtualBox

Changeset 16989 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 21, 2009 8:31:22 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43180
Message:

NAT: Initialization

File:
1 edited

Legend:

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

    r16948 r16989  
    11171117            {
    11181118                int err;
    1119                 int inq = -1, outq;
     1119                int inq, outq;
     1120                int status;
     1121                inq = outq = 0;
    11201122                socklen_t optlen = sizeof(int);
    1121                 int status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen);
     1123                status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen);
    11221124                if (status != 0)
    11231125                    LogRel(("NAT: can't get error status from %R[natsock]\n", so));
     
    11331135                    LogRel(("NAT: can't get depth of OUT queue from %R[natsock]\n", so));
    11341136#else
    1135                 inq = outq = -1;
    11361137                /*
    11371138                 * Solaris has bit different ioctl commands and its handlings
Note: See TracChangeset for help on using the changeset viewer.

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