diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-03-23 02:52:33 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-03-23 02:52:33 +0000 |
commit | 58682b413db37d8c30c2ff5ec67d9a36e1e08435 (patch) | |
tree | 59351711ae28784d075b2e81fe8abc468b6a8fec /apropos.c | |
parent | 3866c1ed9e048803c26ad9a8c8d7fa2892a10318 (diff) | |
download | mandoc-58682b413db37d8c30c2ff5ec67d9a36e1e08435.tar.gz |
Revert to mandocdb.{index,db} for database files.
Diffstat (limited to 'apropos.c')
-rw-r--r-- | apropos.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 : "", |