X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fqache.c;h=af678a5bbed6f2e2a8816c517a6ed16687f41112;hb=31316f76dd68a03b803f51931d6e1fff2c60c5d1;hp=26b178cb38f5e92718ad35b6d779f3a9ce26aa54;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/qache.c b/ucw/qache.c index 26b178cb..af678a5b 100644 --- a/ucw/qache.c +++ b/ucw/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) == (sh_off_t)h.entry_table_start); + ASSERT(btell(fb) == (ucw_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) == (sh_off_t)h.hash_table_start); + ASSERT(btell(fb) == (ucw_off_t)h.hash_table_start); for (uns i=0; icache_size); + ASSERT(btell(fb) == (ucw_off_t)par->cache_size); bclose(fb); msg(L_INFO, "Cache %s: created (%d bytes, %d slots, %d buckets)", q->file_name, par->cache_size, h.max_entries, h.hash_size);