VirtualBox

Ignore:
Timestamp:
May 8, 2017 4:54:39 PM (8 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
3 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);
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