aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libibex/ChangeLog5
-rw-r--r--libibex/block.c4
-rw-r--r--libibex/ibex_internal.h2
3 files changed, 8 insertions, 3 deletions
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 <NotZed@HelixCode.com>
+ * 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;