diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 10:51:30 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 10:51:30 +0000 |
commit | 1d3c95dfc94730fe58488b00744522e212559f61 (patch) | |
tree | c11ae296713d15891a36e1cde1d11969ff768806 /man.c | |
parent | 38cc8e94560761d1c42f01b74c32483dc510b5e2 (diff) | |
download | mandoc-1d3c95dfc94730fe58488b00744522e212559f61.tar.gz |
Clean up {mdoc,man}_pmsg and vmsg invocations (ignore return values).
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |