summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 11:30:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 11:30:23 +0000
commitb8834ed2b38344025a694c113bdc5c9247d8dc7e (patch)
tree43048b0e3e1a25b8e7392ddd5ca0f540934aa492 /mdoc.c
parentff909bf468538a284ebc9c54861cd32cbd19251c (diff)
downloadmandoc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index 421db789..348e58cd 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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);
}