version 1.20, 2011/12/09 11:29:19 |
version 1.21, 2011/12/09 23:18:51 |
Line 128 kval_query(struct query *q, const struct kval *fields, |
|
Line 128 kval_query(struct query *q, const struct kval *fields, |
|
int i, legacy; |
int i, legacy; |
|
|
memset(q, 0, sizeof(struct query)); |
memset(q, 0, sizeof(struct query)); |
|
q->whatis = 1; |
legacy = -1; |
legacy = -1; |
|
|
for (i = 0; i < (int)sz; i++) |
for (i = 0; i < (int)sz; i++) |
Line 502 resp_search(struct res *r, size_t sz, void *arg) |
|
Line 503 resp_search(struct res *r, size_t sz, void *arg) |
|
kval_query(&q, req->fields, req->fieldsz); |
kval_query(&q, req->fields, req->fieldsz); |
|
|
if (0 == sz) { |
if (0 == sz) { |
puts("<P>\n" |
printf("<P>\n" |
"No results found."); |
"No %s results found.", |
|
q.whatis ? "whatis" : "apropos"); |
if (q.whatis) { |
if (q.whatis) { |
printf("(Try <A HREF=\""); |
printf("(Try <A HREF=\""); |
html_print(progname); |
html_print(progname); |