summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-14 01:17:46 +0000
committerschwarze <schwarze@openbsd.org>2018-12-14 01:17:46 +0000
commite501e731dec360ef00f71bbced948ed647e96a92 (patch)
tree9a469e024f08a55bf79871b9c9bf92a4f8b12d7e /usr.bin/mandoc/man_validate.c
parentin event reports, use a struct timeval instead of time_t since we want more (diff)
downloadwireguard-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/man_validate.c')
-rw-r--r--usr.bin/mandoc/man_validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c
index e6d3775dd6e..34404af3bb1 100644
--- a/usr.bin/mandoc/man_validate.c
+++ b/usr.bin/mandoc/man_validate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man_validate.c,v 1.110 2018/12/04 02:53:45 schwarze Exp $ */
+/* $OpenBSD: man_validate.c,v 1.111 2018/12/14 01:17:46 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -22,6 +22,7 @@
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>