Changeset 63015 in vbox for trunk/src/VBox/Devices/Network/slirp/bsd/kern
- Timestamp:
- Aug 4, 2016 10:06:01 PM (8 years ago)
- 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 529 529 { 530 530 struct mbuf *m; 531 u nsigned longflags;531 uintptr_t flags; 532 532 #ifdef VBOX 533 533 NOREF(pData); 534 534 #endif 535 535 536 536 m = (struct mbuf *)mem; 537 flags = (u nsigned long)arg;537 flags = (uintptr_t)arg; 538 538 539 539 if ((flags & MB_NOTAGS) == 0 && (m->m_flags & M_PKTHDR) != 0) … … 544 544 trash_dtor(mem, size, arg); 545 545 #elif defined(VBOX) 546 547 546 NOREF(size); 547 NOREF(arg); 548 548 #endif 549 549 } -
trunk/src/VBox/Devices/Network/slirp/bsd/kern/uipc_mbuf.c
r53308 r63015 269 269 /* Free attached storage if this mbuf is the only reference to it. */ 270 270 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) { 272 272 switch (m->m_ext.ext_type) { 273 273 case EXT_PACKET: /* The packet zone is special. */ … … 434 434 m_freem(pData, m->m_nextpkt); 435 435 #endif 436 m->m_nextpkt = (struct mbuf *) 0xDEADC0DE;436 m->m_nextpkt = (struct mbuf *)(uintptr_t)UINT32_C(0xDEADC0DE); 437 437 } else 438 438 M_SANITY_ACTION("m->m_nextpkt on in-chain mbuf");
Note:
See TracChangeset
for help on using the changeset viewer.