aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmseq.c')
-rw-r--r--src/gdbmseq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gdbmseq.c b/src/gdbmseq.c
index 4323185..bae60a3 100644
--- a/src/gdbmseq.c
+++ b/src/gdbmseq.c
@@ -49,12 +49,12 @@ get_next_key (GDBM_FILE dbf, int elem_loc, datum *return_val)
/* Find the next bucket. It is possible several entries in
the bucket directory point to the same bucket. */
- while (dbf->bucket_dir < dbf->header->dir_size / sizeof (off_t)
+ while (dbf->bucket_dir < GDBM_DIR_COUNT (dbf)
&& dbf->cache_entry->ca_adr == dbf->dir[dbf->bucket_dir])
dbf->bucket_dir++;
/* Check to see if there was a next bucket. */
- if (dbf->bucket_dir < dbf->header->dir_size / sizeof (off_t))
+ if (dbf->bucket_dir < GDBM_DIR_COUNT (dbf))
_gdbm_get_bucket (dbf, dbf->bucket_dir);
else
/* No next key, just return. */

Return to:

Send suggestions and report system problems to the System administrator.