aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-12-12 02:00:49 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-12-12 02:00:49 +0000
commit6ca7be8f333b28c465a7b7d961bddcb31d59d72f (patch)
treee67531ef7f83c08f0c5eb984fa934e30675e4346 /cgi.c
parent424e4a7f6dd613adba96e61c70ed0ad508fc1d45 (diff)
downloadmandoc-6ca7be8f333b28c465a7b7d961bddcb31d59d72f.tar.gz
mandoc-6ca7be8f333b28c465a7b7d961bddcb31d59d72f.tar.zst
mandoc-6ca7be8f333b28c465a7b7d961bddcb31d59d72f.zip
implement -C (alternative config file) for apropos(1) and mandocdb(8),
including various tweaks to the whatis(8) manual; ok kristaps@
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi.c b/cgi.c
index 52bf2720..30075489 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.29 2011/12/11 00:22:47 kristaps Exp $ */
+/* $Id: cgi.c,v 1.30 2011/12/12 02:00:49 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -792,7 +792,7 @@ pg_show(const struct req *req, char *path)
}
memset(&ps, 0, sizeof(struct manpaths));
- manpath_manconf("etc/catman.conf", &ps);
+ manpath_manconf(&ps, "etc/catman.conf");
if (vol >= (unsigned int)ps.sz) {
resp_error400();
@@ -878,7 +878,7 @@ pg_search(const struct req *req, char *path)
}
memset(&ps, 0, sizeof(struct manpaths));
- manpath_manconf("etc/catman.conf", &ps);
+ manpath_manconf(&ps, "etc/catman.conf");
/*
* Poor man's tokenisation: just break apart by spaces.