diff options
author | 2015-01-15 04:26:06 +0000 | |
---|---|---|
committer | 2015-01-15 04:26:06 +0000 | |
commit | df927bb6d9e77516bd651a336da98edf7c9a40b2 (patch) | |
tree | 8fd090793533780f062e7ab24777395640dd86f6 /usr.bin/mandoc/man.c | |
parent | Sync with libc version. (diff) | |
download | wireguard-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/man.c')
-rw-r--r-- | usr.bin/mandoc/man.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index c3a5dc8103b..29e57e56fd9 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man.c,v 1.94 2014/12/28 14:39:08 schwarze Exp $ */ +/* $OpenBSD: man.c,v 1.95 2015/01/15 04:26:06 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -107,12 +107,11 @@ man_alloc(struct roff *roff, struct mparse *parse, return(p); } -int +void man_endparse(struct man *man) { man_macroend(man); - return(1); } int |