VirtualBox

Changeset 84390 in vbox for trunk/src


Ignore:
Timestamp:
May 20, 2020 6:27:41 AM (5 years ago)
Author:
vboxsync
Message:

Fix more windows compiler warnings

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp

    r84389 r84390  
    18631863
    18641864    if (pThisCC->pDrv && fPromiscChanged)
    1865         pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, pThis->fPromiscuous | pThis->fAllMulticast);
     1865        if (pThis->fPromiscuous | pThis->fAllMulticast)
     1866            pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, true);
     1867        else
     1868            pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, false);
    18661869
    18671870    return VIRTIONET_OK;
  • trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp

    r84389 r84390  
    881881 */
    882882static int virtioScsiR3ReqErr4(PPDMDEVINS pDevIns, PVIRTIOSCSI pThis, PVIRTIOSCSICC pThisCC, uint16_t qIdx,
    883                                PVIRTIO_DESC_CHAIN_T pDescChain, uint32_t cbResidual, uint8_t bStatus, uint8_t bResponse,
     883                               PVIRTIO_DESC_CHAIN_T pDescChain, size_t cbResidual, uint8_t bStatus, uint8_t bResponse,
    884884                               uint8_t *pbSense, size_t cbSense, size_t cbSenseCfg)
    885885{
     
    11951195         * vague and confusing part of the VirtIO spec (which deviates from the SCSI standard).
    11961196         * I have not been able to determine how to implement this properly.  I've checked the
    1197          * source code of Guest drivers, so far, and none I've found use it. If logs show
    1198          * this warning implementing it can be re-visited */
     1197         * source code of Guest drivers, and so far none seem to use it. If logs show
     1198         * this warning, implementing it can be re-visited */
    11991199        uScsiLun = 0xff;
    12001200    }
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