VirtualBox

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


Ignore:
Timestamp:
May 8, 2017 4:54:39 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115275
Message:

Devices: Adjustments for Visual C++ v12 / Visual Studio 2013. New warnings.

Location:
trunk/src/VBox/Devices/Network
Files:
4 edited

Legend:

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

    r63015 r66828  
    12321232        int count, space;
    12331233
    1234         if (len > (MHLEN - dstoff))
     1234        if (len > (int)(MHLEN - dstoff))
    12351235                goto bad;
    12361236        MGET(m, M_DONTWAIT, n->m_type);
  • trunk/src/VBox/Devices/Network/slirp/ip_icmpwin.c

    r63283 r66828  
    381381        reqsize = reply->DataSize;
    382382        if (   (reply->Options.Flags & IP_FLAG_DF) != 0
    383             && sizeof(struct ip) + sizeof(struct icmp_echo) + reqsize > if_mtu)
     383            && sizeof(struct ip) + sizeof(struct icmp_echo) + reqsize > (size_t)if_mtu)
    384384            return;
    385385
  • trunk/src/VBox/Devices/Network/slirp/tftp.c

    r64585 r66828  
    729729     *  than buffer for name storage.
    730730     */
    731     AssertReturnVoid(   cbFileName < cbPayload
     731    AssertReturnVoid(   (ssize_t)cbFileName < cbPayload
    732732                     && cbFileName < TFTP_FILENAME_MAX /* current limit in tftp session handle */
    733733                     && cbFileName);
  • trunk/src/VBox/Devices/Network/testcase/tstIntNetR0.cpp

    r62920 r66828  
    101101static uint32_t         g_cbTransfer = _1M * 384;
    102102/** Fake session handle. */
    103 const PSUPDRVSESSION    g_pSession   = (PSUPDRVSESSION)0xdeadface;
     103const PSUPDRVSESSION    g_pSession   = (PSUPDRVSESSION)(uintptr_t)0xdeadface;
    104104
    105105
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