VirtualBox

Ignore:
Timestamp:
Aug 4, 2016 10:06:01 PM (8 years ago)
Author:
vboxsync
Message:

slirp: warnings

Location:
trunk/src/VBox/Devices/Network/slirp/bsd/kern
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/kern_mbuf.c

    r39101 r63015  
    529529{
    530530        struct mbuf *m;
    531         unsigned long flags;
     531        uintptr_t flags;
    532532#ifdef VBOX
    533     NOREF(pData);
     533        NOREF(pData);
    534534#endif
    535535
    536536        m = (struct mbuf *)mem;
    537         flags = (unsigned long)arg;
     537        flags = (uintptr_t)arg;
    538538
    539539        if ((flags & MB_NOTAGS) == 0 && (m->m_flags & M_PKTHDR) != 0)
     
    544544        trash_dtor(mem, size, arg);
    545545#elif defined(VBOX)
    546     NOREF(size);
    547     NOREF(arg);
     546        NOREF(size);
     547        NOREF(arg);
    548548#endif
    549549}
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf.c

    r53308 r63015  
    269269        /* Free attached storage if this mbuf is the only reference to it. */
    270270        if (*(m->m_ext.ref_cnt) == 1 ||
    271             atomic_fetchadd_int(m->m_ext.ref_cnt, -1) == 1) {
     271            atomic_fetchadd_int(m->m_ext.ref_cnt, (uint32_t)-1) == 1) {
    272272                switch (m->m_ext.ext_type) {
    273273                case EXT_PACKET:        /* The packet zone is special. */
     
    434434                                m_freem(pData, m->m_nextpkt);
    435435#endif
    436                                 m->m_nextpkt = (struct mbuf *)0xDEADC0DE;
     436                                m->m_nextpkt = (struct mbuf *)(uintptr_t)UINT32_C(0xDEADC0DE);
    437437                        } else
    438438                                M_SANITY_ACTION("m->m_nextpkt on in-chain mbuf");
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