diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 11:30:23 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 11:30:23 +0000 |
commit | b8834ed2b38344025a694c113bdc5c9247d8dc7e (patch) | |
tree | 43048b0e3e1a25b8e7392ddd5ca0f540934aa492 /mdoc.c | |
parent | ff909bf468538a284ebc9c54861cd32cbd19251c (diff) | |
download | mandoc-b8834ed2b38344025a694c113bdc5c9247d8dc7e.tar.gz |
Clean-up in libmdoc: fix last checks for mdoc_*msg return value, then
make mdoc_vmsg not return an int. libmdoc is now completely clean of
return-value checks from the message subsystem.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -303,7 +303,7 @@ mdoc_parseln(struct mdoc *m, int ln, char *buf, int offs) } -int +void mdoc_vmsg(struct mdoc *mdoc, enum mandocerr t, int ln, int pos, const char *fmt, ...) { @@ -314,7 +314,7 @@ mdoc_vmsg(struct mdoc *mdoc, enum mandocerr t, vsnprintf(buf, sizeof(buf) - 1, fmt, ap); va_end(ap); - return((*mdoc->msg)(t, mdoc->data, ln, pos, buf)); + (*mdoc->msg)(t, mdoc->data, ln, pos, buf); } |