summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apropos.c7
-rw-r--r--mandocdb.h4
2 files changed, 6 insertions, 5 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 : "",
diff --git a/mandocdb.h b/mandocdb.h
index 72d05113..473b5d68 100644
--- a/mandocdb.h
+++ b/mandocdb.h
@@ -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