diff options
Diffstat (limited to 'src/bucket.c')
-rw-r--r-- | src/bucket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bucket.c b/src/bucket.c index 0597965..3d267e2 100644 --- a/src/bucket.c +++ b/src/bucket.c | |||
@@ -51,13 +51,13 @@ _gdbm_new_bucket (GDBM_FILE dbf, hash_bucket *bucket, int bits) | |||
51 | attempt to read a block at that offset. */ | 51 | attempt to read a block at that offset. */ |
52 | int | 52 | int |
53 | gdbm_dir_entry_valid_p (GDBM_FILE dbf, int dir_index) | 53 | gdbm_dir_entry_valid_p (GDBM_FILE dbf, int dir_index) |
54 | { | 54 | { |
55 | return dir_index >= 0 | 55 | return dir_index >= 0 |
56 | && dir_index < GDBM_DIR_COUNT (dbf) | 56 | && dir_index < GDBM_DIR_COUNT (dbf) |
57 | && dbf->dir[dir_index] >= 2*dbf->header->block_size; | 57 | && dbf->dir[dir_index] >= dbf->header->block_size; |
58 | } | 58 | } |
59 | 59 | ||
60 | /* Find a bucket for DBF that is pointed to by the bucket directory from | 60 | /* Find a bucket for DBF that is pointed to by the bucket directory from |
61 | location DIR_INDEX. The bucket cache is first checked to see if it | 61 | location DIR_INDEX. The bucket cache is first checked to see if it |
62 | is already in memory. If not, a bucket may be tossed to read the new | 62 | is already in memory. If not, a bucket may be tossed to read the new |
63 | bucket. On success, the requested bucket becomes the "current" bucket | 63 | bucket. On success, the requested bucket becomes the "current" bucket |