Changes in uspace/drv/bus/isa/isa.c [f77c1c9:b446b02] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/isa.c
rf77c1c9 rb446b02 49 49 #include <ctype.h> 50 50 #include <macros.h> 51 #include < stdlib.h>51 #include <malloc.h> 52 52 #include <dirent.h> 53 53 #include <ipc/irc.h> … … 277 277 int fd; 278 278 size_t len; 279 int rc; 280 size_t nread; 279 ssize_t r; 281 280 struct stat st; 282 281 283 rc = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ, &fd);284 if ( rc != EOK) {282 fd = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ); 283 if (fd < 0) { 285 284 ddf_msg(LVL_ERROR, "Unable to open %s", conf_path); 286 285 goto cleanup; … … 307 306 } 308 307 309 r c = vfs_read(fd, (aoff64_t []) {0}, buf, len, &nread);310 if (r c != EOK) {308 r = vfs_read(fd, (aoff64_t []) {0}, buf, len); 309 if (r < 0) { 311 310 ddf_msg(LVL_ERROR, "Unable to read file '%s'.", conf_path); 312 311 goto cleanup; 313 312 } 314 313 315 buf[ nread] = 0;314 buf[len] = 0; 316 315 317 316 suc = true;
Note:
See TracChangeset
for help on using the changeset viewer.