aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit1545409a8cbf6e10c0826c6fd9aefd23b5096af1 (patch)
treeba3f40d20bb9c22f45d36b24a9e1698a171e439d /apropos.c
parent498394cc85fc66acdca0326691bdf466d558e7ac (diff)
downloadmandoc-1545409a8cbf6e10c0826c6fd9aefd23b5096af1.tar.gz
mandoc-1545409a8cbf6e10c0826c6fd9aefd23b5096af1.tar.zst
mandoc-1545409a8cbf6e10c0826c6fd9aefd23b5096af1.zip
Revert to mandocdb.{index,db} for database files.
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apropos.c b/apropos.c
index 9ef25f5e..f222f356 100644
--- a/apropos.c
+++ b/apropos.c
@@ -1,4 +1,4 @@
-/* $Id: apropos.c,v 1.25 2011/12/31 18:47:52 kristaps Exp $ */
+/* $Id: apropos.c,v 1.26 2012/03/23 02:52:33 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 : "",