Changeset 8e3498b in mainline for uspace/drv/bus/isa
- Timestamp:
- 2017-12-04T18:44:24Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bde5c04
- Parents:
- 40feeac
- File:
-
- 1 edited
-
uspace/drv/bus/isa/isa.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/isa.c
r40feeac r8e3498b 277 277 int fd; 278 278 size_t len; 279 ssize_t r; 279 int rc; 280 size_t nread; 280 281 struct stat st; 281 282 … … 306 307 } 307 308 308 r = vfs_read(fd, (aoff64_t []) {0}, buf, len);309 if (r < 0) {309 rc = vfs_read(fd, (aoff64_t []) {0}, buf, len, &nread); 310 if (rc != EOK) { 310 311 ddf_msg(LVL_ERROR, "Unable to read file '%s'.", conf_path); 311 312 goto cleanup; 312 313 } 313 314 314 buf[ len] = 0;315 buf[nread] = 0; 315 316 316 317 suc = true;
Note:
See TracChangeset
for help on using the changeset viewer.
