VirtualBox

Changeset 3097 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jun 12, 2007 11:00:37 AM (18 years ago)
Author:
vboxsync
Message:

prevent warnings if compiled as C files (Linux guest modules)

Location:
trunk/src/VBox/Additions/common/VBoxGuestLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp

    r2981 r3097  
    2828DECLVBGL(int) VbglGRAlloc (VMMDevRequestHeader **ppReq, uint32_t cbSize, VMMDevRequestType reqType)
    2929{
     30    VMMDevRequestHeader *pReq;
    3031    int rc = VbglEnter ();
    3132
     
    3940    }
    4041
    41     VMMDevRequestHeader *pReq = (VMMDevRequestHeader *)VbglPhysHeapAlloc (cbSize);
     42    pReq = (VMMDevRequestHeader *)VbglPhysHeapAlloc (cbSize);
    4243    if (!pReq)
    4344    {
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp

    r3090 r3097  
    158158        if (cbParms)
    159159        {
     160            HGCMFunctionParameter *pParm;
     161
    160162            memcpy (VMMDEV_HGCM_CALL_PARMS(pHGCMCall), VBOXGUEST_HGCM_CALL_PARMS(pCallInfo), cbParms);
    161163           
     
    167169            }
    168170           
    169             HGCMFunctionParameter *pParm = VBOXGUEST_HGCM_CALL_PARMS(pCallInfo);
    170            
     171            pParm = VBOXGUEST_HGCM_CALL_PARMS(pCallInfo);
    171172            unsigned iParm = 0;
    172173            for (; iParm < pCallInfo->cParms; iParm++, pParm++)
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