X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=bfile%2Fcommit.c;h=8c77b80f29eeed3c6b2f68a2ce37b217a826dbe8;hb=87153cf0749ab9ecb4a6d652e0842957467ffe4b;hp=0c9df27ed6cf424ff93076e783b8825abffe3c84;hpb=fe8a4ac0e92103284e9888f0c13c141f4711d9a3;p=idzebra-moved-to-github.git diff --git a/bfile/commit.c b/bfile/commit.c index 0c9df27..8c77b80 100644 --- a/bfile/commit.c +++ b/bfile/commit.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: commit.c,v $ - * Revision 1.5 1995-12-12 15:57:55 adam + * Revision 1.6 1995-12-15 12:36:53 adam + * Moved hash file information to union. + * Renamed commit files. + * + * Revision 1.5 1995/12/12 15:57:55 adam * Implemented mf_unlink. cf_unlink uses mf_unlink. * * Revision 1.4 1995/12/11 09:03:55 adam @@ -54,9 +58,9 @@ void cf_commit (CFile cf) exit (1); } p = xmalloc (sizeof(*p)); - hash_bytes = cf->head.hash_size * sizeof(int); + hash_bytes = cf->head.u.hash.hash_size * sizeof(int); bucket_no = (hash_bytes+sizeof(cf->head))/HASH_BSIZE + 2; - for (; bucket_no < cf->head.next_bucket; bucket_no++) + for (; bucket_no < cf->head.u.hash.next_bucket; bucket_no++) { if (!mf_read (cf->hash_mf, bucket_no, 0, 0, p)) {