Changeset d5c1051 in mainline for uspace/lib/draw/font/pcf.c


Ignore:
Timestamp:
2017-12-20T22:25:34Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39b54fe
Parents:
8610c2c
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:22:29)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:25:34)
Message:

"Obviously harmless" error handling tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/font/pcf.c

    r8610c2c rd5c1051  
    268268            (glyph_id * sizeof(uint32_t));
    269269       
    270         rc = fseek(data->file, offset, SEEK_SET);
    271         if (rc != 0)
     270        if (fseek(data->file, offset, SEEK_SET) < 0)
    272271                return errno;
    273272       
     
    284283            + bitmap_offset;
    285284       
    286         rc = fseek(data->file, offset, SEEK_SET);
    287         if (rc != 0)
     285        if (fseek(data->file, offset, SEEK_SET) < 0)
    288286                return errno;
    289287       
Note: See TracChangeset for help on using the changeset viewer.