Changeset 94e46c9 in mainline for uspace/drv/bus/isa/isa.c


Ignore:
Timestamp:
2015-05-23T04:09:11Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5143bd
Parents:
a25d893 (diff), 0683992 (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:

Mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    ra25d893 r94e46c9  
    245245        bool opened = false;
    246246        int fd;
    247         size_t len = 0;
     247        size_t len;
     248        ssize_t r;
    248249
    249250        fd = open(conf_path, O_RDONLY);
     
    269270        }
    270271
    271         if (0 >= read(fd, buf, len)) {
     272        r = read_all(fd, buf, len);
     273        if (r < 0) {
    272274                ddf_msg(LVL_ERROR, "Unable to read file '%s'.", conf_path);
    273275                goto cleanup;
Note: See TracChangeset for help on using the changeset viewer.