VirtualBox

Changeset 16768 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Feb 14, 2009 7:49:29 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42822
Message:

NAT: RTMemAllocZ() makes memset() superflous; small cosmetics

File:
1 edited

Legend:

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

    r16759 r16768  
    462462        /* CTL is x.x.x.15, bootp passes up to 16 IPs (15..31) */
    463463        return VERR_INVALID_PARAMETER;
    464     memset(pData, '\0', sizeof(NATState));
    465464    pData->fPassDomain = fPassDomain;
    466465    pData->pvUser = pvUser;
     
    11111110            {
    11121111                int err;
    1113                 int inq, outq;
    1114                 int status;
    1115                 inq = -1;
     1112                int inq = -1, outq;
    11161113                socklen_t optlen = sizeof(int);
    1117                 status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen);
     1114                int status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen);
    11181115                if (status != 0)
    11191116                    LogRel(("NAT:can't get error status from %R[natsock]\n", so));
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