Changeset ff381a7 in mainline for uspace/app/viewer/viewer.c


Ignore:
Timestamp:
2015-11-02T20:54:19Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/viewer/viewer.c

    r3feeab2 rff381a7  
    9898{
    9999        int fd = open(fname, O_RDONLY);
    100         if (fd < 0)
     100        if (fd != 0)
    101101                return false;
    102102       
    103103        struct stat stat;
    104104        int rc = fstat(fd, &stat);
    105         if (rc != EOK) {
     105        if (rc != 0) {
    106106                close(fd);
    107107                return false;
     
    114114        }
    115115       
    116         ssize_t rd = read_all(fd, tga, stat.size);
     116        ssize_t rd = read(fd, tga, stat.size);
    117117        if ((rd < 0) || (rd != (ssize_t) stat.size)) {
    118118                free(tga);
Note: See TracChangeset for help on using the changeset viewer.