diff options
author | 2018-12-14 01:17:46 +0000 | |
---|---|---|
committer | 2018-12-14 01:17:46 +0000 | |
commit | e501e731dec360ef00f71bbced948ed647e96a92 (patch) | |
tree | 9a469e024f08a55bf79871b9c9bf92a4f8b12d7e /usr.bin/mandoc/cgi.c | |
parent | in event reports, use a struct timeval instead of time_t since we want more (diff) | |
download | wireguard-openbsd-e501e731dec360ef00f71bbced948ed647e96a92.tar.xz wireguard-openbsd-e501e731dec360ef00f71bbced948ed647e96a92.zip |
Major cleanup; may imply minor changes in edge cases of error reporting.
Finally, drop support for the run-time configurable mandocmsg()
callback. It was over-engineered from the start, never used for
anything in a decade, and repeatedly caused maintenance headaches.
Consolidate reporting infrastructure into two files, mandoc.h and
mandoc_msg.c, mopping up the bits and pieces that were scattered
around main.c, read.c, mandoc_parse.h, libmandoc.h, the prototypes
of four parsing-related functions, and both parser structs.
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r-- | usr.bin/mandoc/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c index 00d392d2f90..706e924853b 100644 --- a/usr.bin/mandoc/cgi.c +++ b/usr.bin/mandoc/cgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgi.c,v 1.100 2018/12/13 11:55:14 schwarze Exp $ */ +/* $OpenBSD: cgi.c,v 1.101 2018/12/14 01:17:46 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016, 2017, 2018 Ingo Schwarze <schwarze@usta.de> @@ -857,7 +857,7 @@ resp_format(const struct req *req, const char *file) mchars_alloc(); mp = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1, - MANDOCERR_MAX, NULL, MANDOC_OS_OTHER, req->q.manpath); + MANDOC_OS_OTHER, req->q.manpath); mparse_readfd(mp, fd, file); close(fd); |