儲存庫 vbox 的更動 63129
- 時間撮記:
- 2016-8-7 下午01:13:28 (8 年 以前)
- 位置:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- 檔案:
-
- 修改 8 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/dtrace.c
r62827 r63129 400 400 fatal("failed to allocate memory for %s", fname); 401 401 402 if ( read(fd, buf, sz) != sz)402 if ((size_t/*vbox*/)read(fd, buf, sz) != sz) 403 403 fatal("failed to read %s", fname); 404 404 … … 430 430 */ 431 431 if (i != mark) { 432 if ( write(fd, &buf[mark], i - mark) != i - mark)432 if ((size_t/*vbox*/)write(fd, &buf[mark], i - mark) != i - mark) 433 433 fatal("failed to write to %s", fname); 434 434 } … … 450 450 451 451 if (mark < sz) { 452 if ( write(fd, &buf[mark], sz - mark) != sz - mark)452 if ((size_t/*vbox*/)write(fd, &buf[mark], sz - mark) != sz - mark) 453 453 fatal("failed to write to %s", fname); 454 454 } … … 476 476 fatal("failed to allocate memory for %s", fname); 477 477 478 if ( read(fd, buf, sz) != sz)478 if ((size_t/*vbox*/)read(fd, buf, sz) != sz) 479 479 fatal("failed to read %s", fname); 480 480 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/common/ctf/ctf_create.c
r62829 r63129 513 513 514 514 for (dtd = ctf_list_next(&fp->ctf_dtdefs); dtd != NULL; dtd = ntd) { 515 if (dtd->dtd_type <= fp->ctf_dtoldid)515 if (dtd->dtd_type <= (intptr_t /*vbox*/)fp->ctf_dtoldid) 516 516 continue; /* skip types that have been committed */ 517 517 … … 1165 1165 if (dst_type == CTF_ERR && name[0] != '\0') { 1166 1166 for (dtd = ctf_list_prev(&dst_fp->ctf_dtdefs); dtd != NULL && 1167 dtd->dtd_type > dst_fp->ctf_dtoldid;1167 dtd->dtd_type > (intptr_t /*vbox*/)dst_fp->ctf_dtoldid; 1168 1168 dtd = ctf_list_prev(dtd)) { 1169 1169 if ((uint_t)CTF_INFO_KIND(dtd->dtd_data.ctt_info) == kind && -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/common/ctf/ctf_lookup.c
r58990 r63129 234 234 235 235 type = CTF_TYPE_TO_INDEX(type); 236 if (type > 0 && type <= fp->ctf_typemax) {236 if (type > 0 && type <= (intptr_t/*vbox*/)fp->ctf_typemax) { 237 237 *fpp = fp; /* function returns ending CTF container */ 238 238 return (LCTF_INDEX_TO_TYPEPTR(fp, type)); -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/common/ctf/ctf_open.c
r53657 r63129 491 491 */ 492 492 if (CTF_TYPE_ISCHILD(tp->ctt_type) == child && 493 CTF_TYPE_TO_INDEX(tp->ctt_type) <= fp->ctf_typemax)493 CTF_TYPE_TO_INDEX(tp->ctt_type) <= (intptr_t/*vbox*/)fp->ctf_typemax) 494 494 fp->ctf_ptrtab[ 495 495 CTF_TYPE_TO_INDEX(tp->ctt_type)] = id; … … 536 536 strcmp(ctf_strptr(fp, tp->ctt_name), "") == 0 && 537 537 CTF_TYPE_ISCHILD(tp->ctt_type) == child && 538 CTF_TYPE_TO_INDEX(tp->ctt_type) <= fp->ctf_typemax)538 CTF_TYPE_TO_INDEX(tp->ctt_type) <= (intptr_t /*vbox*/)fp->ctf_typemax) 539 539 fp->ctf_ptrtab[ 540 540 CTF_TYPE_TO_INDEX(tp->ctt_type)] = dst; -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_aggregate.c
r62827 r63129 1680 1680 } 1681 1681 1682 assert( i == nentries);1682 assert((size_t/*vbox*/)i == nentries); 1683 1683 1684 1684 /* -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_consume.c
r62829 r63129 731 731 * assume that it's something else and just print the bytes. 732 732 */ 733 #ifdef VBOX 734 size_t i, j; 735 int margin = 5; 736 #else 733 737 int i, j, margin = 5; 738 #endif 734 739 char *c = (char *)addr; 735 740 … … 1045 1050 if (str != NULL) { 1046 1051 str += strlen(str) + 1; 1047 if ( str - strbase>= strsize)1052 if ((uintptr_t/*vbox*/)(str - strbase) >= strsize) 1048 1053 str = NULL; 1049 1054 } -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_regset.c
r53716 r63129 107 107 dt_regset_free(dt_regset_t *drp, int reg) 108 108 { 109 assert(reg > 0 && reg < drp->dr_size);109 assert(reg > 0 && (unsigned /*vbox*/)reg < drp->dr_size); 110 110 assert(BT_TEST(drp->dr_bitmap, reg) != 0); 111 111 BT_CLEAR(drp->dr_bitmap, reg); -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c
r62836 r63129 703 703 avail = dtp->dt_buffered_size - dtp->dt_buffered_offs; 704 704 705 if ( needed + 1 < avail)705 if ((size_t/*vbox*/)needed + 1 < avail) 706 706 break; 707 707
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器