]> mj.ucw.cz Git - libucw.git/commitdiff
Squash warnings...
authorMartin Mares <mj@ucw.cz>
Mon, 8 Nov 1999 23:59:22 +0000 (23:59 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 Nov 1999 23:59:22 +0000 (23:59 +0000)
lib/pagecache.c

index 3e1577f65503f511fcab719d88f11bbc4bc111bd..2d8c1dbb379f787ef35471cbcb9d09b157e128f4 100644 (file)
@@ -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;
     }