summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 11:56:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 11:56:17 +0000
commitc9b2f541bb03d6ea693bb24850f1a6f88dfa2d36 (patch)
tree9e5e1d92bb164c1ab410e752608264fd65b34741 /man.c
parentb8834ed2b38344025a694c113bdc5c9247d8dc7e (diff)
downloadmandoc-c9b2f541bb03d6ea693bb24850f1a6f88dfa2d36.tar.gz
Clean-up in libman: make all calls to man_*msg not check return value.
Also convert man_vmsg to return void.
Diffstat (limited to 'man.c')
-rw-r--r--man.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man.c b/man.c
index 74108604..c3ff9430 100644
--- a/man.c
+++ b/man.c
@@ -622,7 +622,7 @@ err: /* Error out. */
}
-int
+void
man_vmsg(struct man *man, enum mandocerr t,
int ln, int pos, const char *fmt, ...)
{
@@ -632,7 +632,7 @@ man_vmsg(struct man *man, enum mandocerr t,
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf) - 1, fmt, ap);
va_end(ap);
- return((*man->msg)(t, man->data, ln, pos, buf));
+ (*man->msg)(t, man->data, ln, pos, buf);
}