From 17b25548f7426be302e3ef36cf4b7ea4a2bf3edc Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 Nov 1999 23:59:22 +0000 Subject: [PATCH] Squash warnings... --- lib/pagecache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2