VirtualBox

Changeset 16541 in vbox


Ignore:
Timestamp:
Feb 6, 2009 7:24:26 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42475
Message:

prevent typecasts

File:
1 edited

Legend:

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

    r16540 r16541  
    152152    PRTREQ pReq = NULL;
    153153    int rc;
    154     const void *buf;
     154    void *buf;
    155155    /* don't queue new requests when the NAT thread is about to stop */
    156156    if (pThis->pThread->enmState != PDMTHREADSTATE_RUNNING)
     
    164164
    165165    /* @todo: Here we should get mbuf instead temporal buffer */
    166     buf = (const void *)RTMemAlloc(cb);
     166    buf = RTMemAlloc(cb);
    167167    if (buf == NULL)
    168168    {
     
    170170        return VERR_NO_MEMORY;
    171171    }
    172     memcpy((void *)buf, pvBuf, cb);
     172    memcpy(buf, pvBuf, cb);
    173173
    174174    pReq->u.Internal.pfn      = (PFNRT)drvNATSendWorker;
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