X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=bfile%2Fcommit.c;h=9d53e021cd295230d50c98215a264b8fc0590a67;hb=bee234a243b7bfc164f7096f35d1bcb98e7b24a9;hp=8c77b80f29eeed3c6b2f68a2ce37b217a826dbe8;hpb=864f2cb16fb0ffc6b6ffaa74ddbaee3bbf85142d;p=idzebra-moved-to-github.git diff --git a/bfile/commit.c b/bfile/commit.c index 8c77b80..9d53e02 100644 --- a/bfile/commit.c +++ b/bfile/commit.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: commit.c,v $ - * Revision 1.6 1995-12-15 12:36:53 adam + * Revision 1.7 1996-02-07 10:08:46 adam + * Work on flat shadow (not finished yet). + * + * Revision 1.6 1995/12/15 12:36:53 adam * Moved hash file information to union. * Renamed commit files. * @@ -58,9 +61,9 @@ void cf_commit (CFile cf) exit (1); } p = xmalloc (sizeof(*p)); - hash_bytes = cf->head.u.hash.hash_size * sizeof(int); + hash_bytes = cf->head.hash_size * sizeof(int); bucket_no = (hash_bytes+sizeof(cf->head))/HASH_BSIZE + 2; - for (; bucket_no < cf->head.u.hash.next_bucket; bucket_no++) + for (; bucket_no < cf->head.next_bucket; bucket_no++) { if (!mf_read (cf->hash_mf, bucket_no, 0, 0, p)) {