summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 10:51:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 10:51:30 +0000
commit1d3c95dfc94730fe58488b00744522e212559f61 (patch)
treec11ae296713d15891a36e1cde1d11969ff768806 /man.c
parent38cc8e94560761d1c42f01b74c32483dc510b5e2 (diff)
downloadmandoc-1d3c95dfc94730fe58488b00744522e212559f61.tar.gz
Clean up {mdoc,man}_pmsg and vmsg invocations (ignore return values).
Diffstat (limited to 'man.c')
-rw-r--r--man.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/man.c b/man.c
index d8b478de..a8c097ec 100644
--- a/man.c
+++ b/man.c
@@ -348,8 +348,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. */
@@ -381,8 +383,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. */ ;
@@ -488,8 +489,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