=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.58 retrieving revision 1.60 diff -u -p -r1.58 -r1.60 --- mandoc/cgi.c 2014/07/09 14:18:59 1.58 +++ mandoc/cgi.c 2014/07/09 17:03:07 1.60 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.58 2014/07/09 14:18:59 schwarze Exp $ */ +/* $Id: cgi.c,v 1.60 2014/07/09 17:03:07 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -74,14 +74,15 @@ static void pathgen(struct req *); static void pg_index(const struct req *, char *); static void pg_search(const struct req *, char *); static void pg_show(const struct req *, char *); -static void resp_bad(void); -static void resp_baddb(void); -static void resp_error400(void); -static void resp_error404(const char *); static void resp_begin_html(int, const char *); static void resp_begin_http(int, const char *); static void resp_end_html(void); +static void resp_error_badrequest(const char *); +static void resp_error_internal(void); +static void resp_error_notfound(const char *); static void resp_index(const struct req *); +static void resp_noresult(const struct req *, + const char *); static void resp_search(const struct req *, struct manpage *, size_t); static void resp_searchform(const struct req *); @@ -380,7 +381,7 @@ resp_searchform(const struct req *req) html_print(req->q.arch ? req->q.arch : ""); printf("\">"); if (req->psz > 1) { - puts(", "); for (i = 0; i < (int)req->psz; i++) { printf("