aboutsummaryrefslogtreecommitdiff
path: root/src/bucket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bucket.c')
-rw-r--r--src/bucket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bucket.c b/src/bucket.c
index a3e8f4e..4b69bbe 100644
--- a/src/bucket.c
+++ b/src/bucket.c
@@ -29,7 +29,7 @@ void
29_gdbm_new_bucket (GDBM_FILE dbf, hash_bucket *bucket, int bits) 29_gdbm_new_bucket (GDBM_FILE dbf, hash_bucket *bucket, int bits)
30{ 30{
31 int index; 31 int index;
32 32
33 /* Initialize the avail block. */ 33 /* Initialize the avail block. */
34 bucket->av_count = 0; 34 bucket->av_count = 0;
35 35
@@ -146,7 +146,7 @@ _gdbm_get_bucket (GDBM_FILE dbf, int dir_index)
146 if (!(bucket->count >= 0 146 if (!(bucket->count >= 0
147 && bucket->count <= dbf->header->bucket_elems 147 && bucket->count <= dbf->header->bucket_elems
148 && bucket->bucket_bits >= 0 148 && bucket->bucket_bits >= 0
149 && bucket->bucket_bits <= GDBM_HASH_BITS)) 149 && bucket->bucket_bits <= dbf->header->dir_bits))
150 { 150 {
151 GDBM_SET_ERRNO (dbf, GDBM_BAD_BUCKET, TRUE); 151 GDBM_SET_ERRNO (dbf, GDBM_BAD_BUCKET, TRUE);
152 return -1; 152 return -1;

Return to:

Send suggestions and report system problems to the System administrator.