summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-09 23:18:51 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-09 23:18:51 +0000
commitd2efda8198d7b79306168747ae09a0e46d3d8602 (patch)
treead9cf1f63ee4f9a452e98b16134cb8efc1a21775 /cgi.c
parent8eceafee0e08a00d75f4c6bab5fdfe59464dd30a (diff)
downloadmandoc-d2efda8198d7b79306168747ae09a0e46d3d8602.tar.gz
Forgot to make whatis the default during abstraction. Do it again.
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index e654ac88..cc10eab5 100644
--- a/cgi.c
+++ b/cgi.c
@@ -128,6 +128,7 @@ kval_query(struct query *q, const struct kval *fields, size_t sz)
int i, legacy;
memset(q, 0, sizeof(struct query));
+ q->whatis = 1;
legacy = -1;
for (i = 0; i < (int)sz; i++)
@@ -502,8 +503,9 @@ resp_search(struct res *r, size_t sz, void *arg)
kval_query(&q, req->fields, req->fieldsz);
if (0 == sz) {
- puts("<P>\n"
- "No results found.");
+ printf("<P>\n"
+ "No %s results found.",
+ q.whatis ? "whatis" : "apropos");
if (q.whatis) {
printf("(Try <A HREF=\"");
html_print(progname);