Changeset 8e3498b in mainline for uspace/srv/devman/match.c


Ignore:
Timestamp:
2017-12-04T18:44:24Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bde5c04
Parents:
40feeac
Message:

vfs_read/write() should return error code separately from number of bytes transferred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/match.c

    r40feeac r8e3498b  
    229229        }
    230230       
    231         ssize_t read_bytes = vfs_read(fd, (aoff64_t []) {0}, buf, len);
    232         if (read_bytes <= 0) {
     231        size_t read_bytes;
     232        int rc = vfs_read(fd, (aoff64_t []) {0}, buf, len, &read_bytes);
     233        if (rc != EOK) {
    233234                log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (%d).", conf_path,
    234235                    errno);
Note: See TracChangeset for help on using the changeset viewer.