From: Martin Mares Date: Mon, 8 Nov 1999 23:59:22 +0000 (+0000) Subject: Squash warnings... X-Git-Tag: holmes-import~1656 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=17b25548f7426be302e3ef36cf4b7ea4a2bf3edc;p=libucw.git Squash warnings... --- diff --git a/lib/pagecache.c b/lib/pagecache.c index 3e1577f6..2d8c1dbb 100644 --- a/lib/pagecache.c +++ b/lib/pagecache.c @@ -94,7 +94,7 @@ flush_page(struct page_cache *c, struct page *p) 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; } @@ -216,7 +216,7 @@ pgc_read(struct page_cache *c, int fd, sh_off_t pos) 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; }