summaryrefslogtreecommitdiffabout
path: root/src/gdbmtool.c
Side-by-side diff
Diffstat (limited to 'src/gdbmtool.c') (more/less context) (show whitespace changes)
-rw-r--r--src/gdbmtool.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gdbmtool.c b/src/gdbmtool.c
index f9a4924..f439207 100644
--- a/src/gdbmtool.c
+++ b/src/gdbmtool.c
@@ -790,13 +790,7 @@ bucket_count (void)
{
- int i;
- off_t last = 0;
size_t count = 0;
- for (i = 0; i < GDBM_DIR_COUNT (gdbm_file); i++)
+ if (gdbm_bucket_count (gdbm_file, &count))
{
- if (gdbm_file->dir[i] != last)
- {
- ++count;
- last = gdbm_file->dir[i];
- }
+ terror ("gdbm_bucket_count: %s", gdbm_strerror (gdbm_errno));
}

Return to:

Send suggestions and report system problems to the System administrator.