summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--makewhatis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/makewhatis.c b/makewhatis.c
index 1899a94c..a8219407 100644
--- a/makewhatis.c
+++ b/makewhatis.c
@@ -1,4 +1,4 @@
-/* $Id: makewhatis.c,v 1.19 2011/07/11 21:56:06 kristaps Exp $ */
+/* $Id: makewhatis.c,v 1.20 2011/07/12 10:03:02 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -262,7 +262,7 @@ main(int argc, char *argv[])
*db, /* keyword database */
*hash; /* temporary keyword hashtable */
DBT key, val;
- enum mandocerr ec;
+ enum mandoclevel ec;
size_t sv;
BTREEINFO info; /* btree configuration */
recno_t rec, /* current record number */
@@ -287,6 +287,7 @@ main(int argc, char *argv[])
hash = NULL;
recs = NULL;
recsz = 0;
+ maxrec = 0;
op = OP_NEW;
ec = MANDOCLEVEL_SYSERR;
@@ -398,8 +399,7 @@ main(int argc, char *argv[])
recsz = (size_t)i;
maxrec++;
assert(recsz < maxrec);
- } else
- maxrec = 0;
+ }
/*
* Add records to the database.