From c645a2a9e8b2f586199df99a3667be2037912114 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 12 Oct 2000 14:04:17 +0000 Subject: Bumped ibex rev. 2000-10-12 Not Zed * ibex_internal.h (struct ibex): Bumped ibex rev. * block.c (ibex_block_cache_open): Bumped the ibex file revision because of the hash table size change. svn path=/trunk/; revision=5887 --- libibex/ChangeLog | 5 +++++ libibex/block.c | 4 ++-- libibex/ibex_internal.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'libibex') diff --git a/libibex/ChangeLog b/libibex/ChangeLog index 5021bc12b4..ec753aa483 100644 --- a/libibex/ChangeLog +++ b/libibex/ChangeLog @@ -1,5 +1,10 @@ 2000-10-12 Not Zed + * ibex_internal.h (struct ibex): Bumped ibex rev. + + * block.c (ibex_block_cache_open): Bumped the ibex file revision + because of the hash table size change. + * index.h: Added some stat stuff. * wordindex.c (struct _wordcache): Changed files[] to be a pointer diff --git a/libibex/block.c b/libibex/block.c index 6f6cd60657..8e10a116cb 100644 --- a/libibex/block.c +++ b/libibex/block.c @@ -408,11 +408,11 @@ ibex_block_cache_open(const char *name, int flags, int mode) root = (struct _root *)ibex_block_read(block_cache, 0); if (root->roof == 0 - || memcmp(root->version, "ibx3", 4) + || memcmp(root->version, "ibx4", 4) || ((root->flags & IBEX_ROOT_SYNCF) == 0)) { (printf("Initialising superblock\n")); /* reset root data */ - memcpy(root->version, "ibx3", 4); + memcpy(root->version, "ibx4", 4); root->roof = 1024; root->free = 0; root->words = 0; diff --git a/libibex/ibex_internal.h b/libibex/ibex_internal.h index a21867a2ab..bd5d1cbea4 100644 --- a/libibex/ibex_internal.h +++ b/libibex/ibex_internal.h @@ -24,7 +24,7 @@ #include "block.h" #include "wordindex.h" -#define IBEX_VERSION "ibex3" +#define IBEX_VERSION "ibx4" struct ibex { char *path; -- cgit