summaryrefslogtreecommitdiffstats
path: root/apropos.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-03-23 02:52:33 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-03-23 02:52:33 +0000
commit58682b413db37d8c30c2ff5ec67d9a36e1e08435 (patch)
tree59351711ae28784d075b2e81fe8abc468b6a8fec /apropos.c
parent3866c1ed9e048803c26ad9a8c8d7fa2892a10318 (diff)
downloadmandoc-58682b413db37d8c30c2ff5ec67d9a36e1e08435.tar.gz
Revert to mandocdb.{index,db} for database files.
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apropos.c b/apropos.c
index 8426490c..5589cbaf 100644
--- a/apropos.c
+++ b/apropos.c
@@ -122,12 +122,13 @@ out:
static void
list(struct res *res, size_t sz, void *arg)
{
- int i;
+ size_t i;
qsort(res, sz, sizeof(struct res), cmp);
- for (i = 0; i < (int)sz; i++)
- printf("%s(%s%s%s) - %.70s\n", res[i].title,
+ for (i = 0; i < sz; i++)
+ printf("%s(%s%s%s) - %.70s\n",
+ res[i].title,
res[i].cat,
*res[i].arch ? "/" : "",
*res[i].arch ? res[i].arch : "",