s = write(fd, p->data, c->page_size);
if (s < 0)
die("pgc_write(%d): %m", fd);
- if (s != c->page_size)
+ if (s != (int) c->page_size)
die("pgc_write(%d): incomplete page (only %d of %d)", s, c->page_size);
p->flags &= ~PG_FLAG_DIRTY;
}
s = read(fd, p->data, c->page_size);
if (s < 0)
die("pgc_read(%d): %m", fd);
- if (s != c->page_size)
+ if (s != (int) c->page_size)
die("pgc_read(%d): incomplete page (only %d of %d)", s, c->page_size);
p->flags |= PG_FLAG_VALID;
}