VirtualBox

Changeset 49708 in vbox for trunk/src


Ignore:
Timestamp:
Nov 28, 2013 8:35:07 PM (11 years ago)
Author:
vboxsync
Message:

proxy_sendto: declare nsent under Windows properly instead of papering
over with a dangerous cast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/proxy.c

    r49606 r49708  
    409409#ifndef RT_OS_WINDOWS
    410410    struct msghdr mh;
     411    ssize_t nsent;
    411412#else
     413    DWORD nsent;
    412414    int rc;
    413415#endif
     
    416418    IOVEC *dyniov;       /* dynamically sized */
    417419    IOVEC *iov;
    418     ssize_t nsent;
    419420
    420421    /*
     
    459460    }
    460461#else
    461     rc = WSASendTo(sock, iov, (DWORD)clen, (DWORD *)&nsent, 0, name, (int)namelen, NULL, NULL);
     462    rc = WSASendTo(sock, iov, (DWORD)clen, &nsent, 0,
     463                   name, (int)namelen, NULL, NULL);
    462464    if (rc == SOCKET_ERROR) {
    463465         DPRINTF(("%s: fd %d: sendmsg errno %d\n",
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