summaryrefslogtreecommitdiffabout
path: root/src/gdbmtool.c
Unidiff
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
@@ -788,17 +788,11 @@ print_dir_begin (struct handler_param *param GDBM_ARG_UNUSED, size_t *exp_count)
788static size_t 788static size_t
789bucket_count (void) 789bucket_count (void)
790{ 790{
791 int i;
792 off_t last = 0;
793 size_t count = 0; 791 size_t count = 0;
794 792
795 for (i = 0; i < GDBM_DIR_COUNT (gdbm_file); i++) 793 if (gdbm_bucket_count (gdbm_file, &count))
796 { 794 {
797 if (gdbm_file->dir[i] != last) 795 terror ("gdbm_bucket_count: %s", gdbm_strerror (gdbm_errno));
798 {
799 ++count;
800 last = gdbm_file->dir[i];
801 }
802 } 796 }
803 return count; 797 return count;
804} 798}

Return to:

Send suggestions and report system problems to the System administrator.