summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-01-15 04:26:06 +0000
committerschwarze <schwarze@openbsd.org>2015-01-15 04:26:06 +0000
commitdf927bb6d9e77516bd651a336da98edf7c9a40b2 (patch)
tree8fd090793533780f062e7ab24777395640dd86f6 /usr.bin/mandoc/mdoc.c
parentSync with libc version. (diff)
downloadwireguard-openbsd-df927bb6d9e77516bd651a336da98edf7c9a40b2.tar.xz
wireguard-openbsd-df927bb6d9e77516bd651a336da98edf7c9a40b2.zip
Fatal errors no longer exist.
If a file can be opened, mandoc will produce some output; at worst, the output may be almost empty. Simplifies error handling and frees a message type for future use.
Diffstat (limited to 'usr.bin/mandoc/mdoc.c')
-rw-r--r--usr.bin/mandoc/mdoc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c
index b2b1b8951bb..035f639cd40 100644
--- a/usr.bin/mandoc/mdoc.c
+++ b/usr.bin/mandoc/mdoc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc.c,v 1.122 2014/11/28 06:26:46 schwarze Exp $ */
+/* $OpenBSD: mdoc.c,v 1.123 2015/01/15 04:26:06 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -188,12 +188,11 @@ mdoc_alloc(struct roff *roff, struct mparse *parse,
return(p);
}
-int
+void
mdoc_endparse(struct mdoc *mdoc)
{
mdoc_macroend(mdoc);
- return(1);
}
void