Changeset 63015 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Aug 4, 2016 10:06:01 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 5 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bsd/amd64/in_cksum.c
r43464 r63015 103 103 union q_util q_util; 104 104 105 if ((3 & ( long) lw) == 0 && len == 20) {105 if ((3 & (intptr_t) lw) == 0 && len == 20) { 106 106 sum = (u_int64_t) lw[0] + lw[1] + lw[2] + lw[3] + lw[4]; 107 107 REDUCE32; … … 109 109 } 110 110 111 if ((offset = 3 & ( long) lw) != 0) {111 if ((offset = 3 & (intptr_t) lw) != 0) { 112 112 const u_int32_t *masks = in_masks + (offset << 2); 113 113 lw = (u_int32_t *) (((RTHCUINTPTR) lw) - offset); … … 225 225 if (len < mlen) 226 226 mlen = len; 227 if ((clen ^ ( long) addr) & 1)227 if ((clen ^ (intptr_t) addr) & 1) 228 228 sum += in_cksumdata(addr, mlen) << 8; 229 229 else -
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"); -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_ftp.c
r52683 r63015 182 182 handlers[0].fingerprint = &fingerprint; 183 183 handlers[0].protohandler = &protohandler; 184 handlers[1].pri = EOH;184 handlers[1].pri = (u_int)EOH; 185 185 #endif /* VBOX */ 186 186 … … 728 728 729 729 /* Save string length for IP header modification */ 730 slen = strlen(stemp);730 slen = (int)strlen(stemp); 731 731 732 732 /* Copy modified buffer into IP packet. */ -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_nbt.c
r62352 r63015 219 219 handlers[2].protohandler = &protohandler2out; 220 220 221 handlers[3].pri = EOH;221 handlers[3].pri = (u_int)EOH; 222 222 #endif /* VBOX */ 223 223 -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_proxy.c
r62353 r63015 427 427 428 428 /* Pad string out to a multiple of two in length */ 429 slen = strlen(buffer);429 slen = (int)strlen(buffer); 430 430 switch (slen % 2) { 431 431 case 0: … … 693 693 /* Copy command line into a buffer */ 694 694 cmd += strspn(cmd, " \t"); 695 cmd_len = strlen(cmd);695 cmd_len = (int)strlen(cmd); 696 696 if (cmd_len > (int)(sizeof(buffer) - 1)) { 697 697 ret = -1; … … 701 701 702 702 /* Convert to lower case */ 703 len = strlen(buffer);703 len = (int)strlen(buffer); 704 704 for (i = 0; i < len; i++) 705 705 buffer[i] = tolower((unsigned char)buffer[i]);
Note:
See TracChangeset
for help on using the changeset viewer.