VirtualBox

Ignore:
Timestamp:
Aug 7, 2016 1:13:28 PM (8 years ago)
Author:
vboxsync
Message:

dtrace: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/dtrace.c

    r62827 r63129  
    400400                fatal("failed to allocate memory for %s", fname);
    401401
    402         if (read(fd, buf, sz) != sz)
     402        if ((size_t/*vbox*/)read(fd, buf, sz) != sz)
    403403                fatal("failed to read %s", fname);
    404404
     
    430430                 */
    431431                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)
    433433                                fatal("failed to write to %s", fname);
    434434                }
     
    450450
    451451        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)
    453453                        fatal("failed to write to %s", fname);
    454454        }
     
    476476                fatal("failed to allocate memory for %s", fname);
    477477
    478         if (read(fd, buf, sz) != sz)
     478        if ((size_t/*vbox*/)read(fd, buf, sz) != sz)
    479479                fatal("failed to read %s", fname);
    480480
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