Changes in uspace/drv/bus/isa/isa.c [b446b02:f77c1c9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/isa.c
rb446b02 rf77c1c9 49 49 #include <ctype.h> 50 50 #include <macros.h> 51 #include < malloc.h>51 #include <stdlib.h> 52 52 #include <dirent.h> 53 53 #include <ipc/irc.h> … … 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 282 fd = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ);283 if ( fd < 0) {283 rc = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ, &fd); 284 if (rc != EOK) { 284 285 ddf_msg(LVL_ERROR, "Unable to open %s", conf_path); 285 286 goto cleanup; … … 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.