=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.169 retrieving revision 1.172 diff -u -p -r1.169 -r1.172 --- mandoc/cgi.c 2019/11/10 22:35:25 1.169 +++ mandoc/cgi.c 2020/04/03 11:35:01 1.172 @@ -1,7 +1,7 @@ -/* $Id: cgi.c,v 1.169 2019/11/10 22:35:25 schwarze Exp $ */ +/* $Id: cgi.c,v 1.172 2020/04/03 11:35:01 schwarze Exp $ */ /* - * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014-2019 Ingo Schwarze + * Copyright (c) 2011, 2012 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -14,6 +14,8 @@ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Implementation of the man.cgi(8) program. */ #include "config.h" @@ -70,9 +72,9 @@ enum focus { static void html_print(const char *); static void html_putchar(char); static int http_decode(char *); -static void http_encode(const char *p); +static void http_encode(const char *); static void parse_manpath_conf(struct req *); -static void parse_path_info(struct req *req, const char *path); +static void parse_path_info(struct req *, const char *); static void parse_query_string(struct req *, const char *); static void pg_error_badrequest(const char *); static void pg_error_internal(void); @@ -411,7 +413,8 @@ resp_searchform(const struct req *req, enum focus focu { int i; - printf("
\n" + printf("\n" "
\n" " Manual Page Search Parameters\n", scriptname);