summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-01-01 17:38:11 +0000
committerschwarze <schwarze@openbsd.org>2011-01-01 17:38:11 +0000
commit16b9503746e58211109a8ee71176a4b510bec5a6 (patch)
tree3c517510ccf2e2d6ec5790eaff0a2ff3c3f4c3ae /usr.bin/mandoc/man.c
parentswap kernels without changing directory; other install.md should be modified like this (diff)
downloadwireguard-openbsd-16b9503746e58211109a8ee71176a4b510bec5a6.tar.xz
wireguard-openbsd-16b9503746e58211109a8ee71176a4b510bec5a6.zip
Clean up {mdoc,man}_{p,v}msg invocations:
Ignore the return values, they are constant anyway. From kristaps@.
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r--usr.bin/mandoc/man.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c
index d60dd1bbab3..c0c6e34d119 100644
--- a/usr.bin/mandoc/man.c
+++ b/usr.bin/mandoc/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.50 2010/12/19 07:53:12 schwarze Exp $ */
+/* $Id: man.c,v 1.51 2011/01/01 17:38:11 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -362,8 +362,10 @@ man_ptext(struct man *m, int line, char *buf, int offs)
if ('\\' == buf[offs] &&
'.' == buf[offs + 1] &&
- '"' == buf[offs + 2])
- return(man_pmsg(m, line, offs, MANDOCERR_BADCOMMENT));
+ '"' == buf[offs + 2]) {
+ man_pmsg(m, line, offs, MANDOCERR_BADCOMMENT);
+ return(1);
+ }
/* Literal free-form text whitespace is preserved. */
@@ -395,8 +397,7 @@ man_ptext(struct man *m, int line, char *buf, int offs)
if (' ' == buf[i - 1] || '\t' == buf[i - 1]) {
if (i > 1 && '\\' != buf[i - 2])
- if ( ! man_pmsg(m, line, i - 1, MANDOCERR_EOLNSPACE))
- return(0);
+ man_pmsg(m, line, i - 1, MANDOCERR_EOLNSPACE);
for (--i; i && ' ' == buf[i]; i--)
/* Spin back to non-space. */ ;
@@ -502,8 +503,7 @@ man_pmacro(struct man *m, int ln, char *buf, int offs)
*/
if ('\0' == buf[i] && ' ' == buf[i - 1])
- if ( ! man_pmsg(m, ln, i - 1, MANDOCERR_EOLNSPACE))
- goto err;
+ man_pmsg(m, ln, i - 1, MANDOCERR_EOLNSPACE);
/*
* Remove prior ELINE macro, as it's being clobbered by a new