From 1545409a8cbf6e10c0826c6fd9aefd23b5096af1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 23 Mar 2012 02:52:33 +0000 Subject: Revert to mandocdb.{index,db} for database files. --- apropos.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apropos.c') 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 * Copyright (c) 2011 Ingo Schwarze @@ -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 : "", -- cgit v1.2.3-56-ge451