diff options
author | 2011-12-25 17:49:52 +0000 | |
---|---|---|
committer | 2011-12-25 17:49:52 +0000 | |
commit | c8d73e251047e8859a65f91c95d63ae37f97e1a6 (patch) | |
tree | bae90b1945998a3b861837b870345b45e6e6896b /cgi.c | |
parent | edc2864f44502c5d9f45664a5d58f03c4146ca27 (diff) | |
download | mandoc-c8d73e251047e8859a65f91c95d63ae37f97e1a6.tar.gz mandoc-c8d73e251047e8859a65f91c95d63ae37f97e1a6.tar.zst mandoc-c8d73e251047e8859a65f91c95d63ae37f97e1a6.zip |
Continue changing mandoc.{index,db} into whatis.{index,db}. Use mandocdb.h
to do so.
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.38 2011/12/16 20:06:58 kristaps Exp $ */ +/* $Id: cgi.c,v 1.39 2011/12/25 17:49:52 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -41,6 +41,7 @@ #include "man.h" #include "main.h" #include "manpath.h" +#include "mandocdb.h" #ifdef __linux__ # include <db_185.h> @@ -843,7 +844,8 @@ pg_show(const struct req *req, char *path) sz = strlcpy(file, ps.paths[vol], MAXPATHLEN); assert(sz < MAXPATHLEN); - strlcat(file, "/mandoc.index", MAXPATHLEN); + strlcat(file, "/", MAXPATHLEN); + strlcat(file, MANDOC_IDX, MAXPATHLEN); /* Open the index recno(3) database. */ |