From a105d23e73da565eff2d62c5ea0f479cf5bafe2c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 26 May 2002 13:10:28 +0000 Subject: [PATCH] Shut up signed/unsigned warnings. --- lib/pagecache.c | 6 +++--- lib/pagecache.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pagecache.c b/lib/pagecache.c index 81f5b9fd..e987a5fe 100644 --- a/lib/pagecache.c +++ b/lib/pagecache.c @@ -1,7 +1,7 @@ /* * Sherlock Library -- File Page Cache * - * (c) 1999--2000 Martin Mares + * (c) 1999--2002 Martin Mares */ #include "lib/lib.h" @@ -104,7 +104,7 @@ flush_page(struct page_cache *c, struct page *p) #ifdef SHERLOCK_HAVE_PREAD s = sh_pwrite(p->fd, p->data, c->page_size, p->pos); #else - if (c->pos != p->pos || c->pos_fd != p->fd) + if (c->pos != p->pos || c->pos_fd != (int) p->fd) sh_seek(p->fd, p->pos, SEEK_SET); s = write(p->fd, p->data, c->page_size); c->pos = p->pos + s; @@ -281,7 +281,7 @@ pgc_read(struct page_cache *c, int fd, sh_off_t pos) #ifdef SHERLOCK_HAVE_PREAD s = sh_pread(fd, p->data, c->page_size, pos); #else - if (c->pos != pos || c->pos_fd != fd) + if (c->pos != pos || c->pos_fd != (int)fd) sh_seek(fd, pos, SEEK_SET); s = read(fd, p->data, c->page_size); c->pos = pos + s; diff --git a/lib/pagecache.h b/lib/pagecache.h index 698177f0..0f99446e 100644 --- a/lib/pagecache.h +++ b/lib/pagecache.h @@ -1,7 +1,7 @@ /* * Sherlock Library -- File Page Cache * - * (c) 1999 Martin Mares + * (c) 1999--2002 Martin Mares */ #ifndef _SHERLOCK_PAGECACHE_H -- 2.39.2