Ignore:
File:
1 edited

Legend:

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

    r23c8acd9 rd5c1051  
    3636#include <stddef.h>
    3737#include <stdint.h>
    38 #include <malloc.h>
    3938#include <errno.h>
    4039#include <byteorder.h>
     
    4241#include <align.h>
    4342#include <offset.h>
     43#include <stdlib.h>
    4444
    4545#include "pcf.h"
     
    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.