VirtualBox

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


Ignore:
Timestamp:
Mar 28, 2009 4:49:59 AM (16 years ago)
Author:
vboxsync
Message:

tstIntNet-1: size_t warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/testcase/tstIntNet-1.cpp

    r17772 r18457  
    295295     * it's not supposed to happen here in this testcase.
    296296     */
    297     int rc = tstIntNetWriteFrame(pBuf, &pBuf->Send, pvFrame, cbFrame);
     297    int rc = tstIntNetWriteFrame(pBuf, &pBuf->Send, pvFrame, (uint32_t)cbFrame);
    298298    if (RT_SUCCESS(rc))
    299299    {
     
    421421
    422422
    423 static uint16_t icmpChecksum(PRTNETICMPV4HDR pHdr, int cbHdr)
     423static uint16_t icmpChecksum(PRTNETICMPV4HDR pHdr, size_t cbHdr)
    424424{
    425     int cbLeft = cbHdr;
     425    size_t cbLeft = cbHdr;
    426426    uint16_t *pbSrc = (uint16_t *)pHdr;
    427427    uint16_t oddByte = 0;
     
    481481    pIpHdr->ip_hl = sizeof(*pIpHdr) / sizeof(uint32_t);
    482482    pIpHdr->ip_tos = 0;
    483     pIpHdr->ip_len = RT_H2BE_U16(sizeof(*pIcmpEcho) + cbPad + sizeof(*pIpHdr));
     483    pIpHdr->ip_len = RT_H2BE_U16((uint16_t)(sizeof(*pIcmpEcho) + cbPad + sizeof(*pIpHdr)));
    484484    pIpHdr->ip_id = (uint16_t)RTRandU32();
    485485    pIpHdr->ip_off = 0;
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