Changeset ff381a7 in mainline for uspace/lib/bithenge/src/file.c


Ignore:
Timestamp:
2015-11-02T20:54:19Z (10 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/lib/bithenge/src/file.c

    r3feeab2 rff381a7  
    114114        struct stat stat;
    115115        int rc = fstat(fd, &stat);
    116         if (rc != EOK) {
     116        if (rc != 0) {
    117117                if (needs_close)
    118118                        close(fd);
     
    157157        int fd = open(filename, O_RDONLY);
    158158        if (fd < 0)
    159                 return fd;
     159                return errno;
    160160
    161161        return new_file_blob(out, fd, true);
Note: See TracChangeset for help on using the changeset viewer.