From: Pavel Charvat Date: Thu, 21 Jun 2007 08:43:57 +0000 (+0200) Subject: fixed few compilation warnings X-Git-Tag: holmes-import~506^2~72 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2105bd535f49c2861297b6cc6de6cd6c4ba46ebc;p=libucw.git fixed few compilation warnings --- diff --git a/lib/qache.c b/lib/qache.c index eeea2b6b..acf0bb1e 100644 --- a/lib/qache.c +++ b/lib/qache.c @@ -331,7 +331,7 @@ qache_create(struct qache *q, struct qache_params *par) bwrite(fb, &h, sizeof(h)); /* Entry #0: heads of all lists */ - ASSERT(btell(fb) == h.entry_table_start); + ASSERT(btell(fb) == (sh_off_t)h.entry_table_start); struct qache_entry ent; bzero(&ent, sizeof(ent)); ent.first_data_block = h.first_data_block; @@ -349,18 +349,18 @@ qache_create(struct qache *q, struct qache_params *par) } /* The hash table */ - ASSERT(btell(fb) == h.hash_table_start); + ASSERT(btell(fb) == (sh_off_t)h.hash_table_start); for (uns i=0; icache_size); + ASSERT(btell(fb) == (sh_off_t)par->cache_size); bclose(fb); log(L_INFO, "Cache %s: created (%d bytes, %d slots, %d buckets)", q->file_name, par->cache_size, h.max_entries, h.hash_size);