diff options
-rw-r--r-- | apropos.c | 7 | ||||
-rw-r--r-- | mandocdb.h | 4 |
2 files changed, 6 insertions, 5 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 : "", @@ -17,8 +17,8 @@ #ifndef MANDOCDB_H #define MANDOCDB_H -#define MANDOC_DB "whatis.db" -#define MANDOC_IDX "whatis.index" +#define MANDOC_DB "mandocdb.db" +#define MANDOC_IDX "mandocdb.index" #define TYPE_An 0x0000000000000001ULL #define TYPE_Ar 0x0000000000000002ULL |