summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-16 09:41:24 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-16 09:41:24 +0000
commit464bf99c7bec33718cdc95c963d3e5d3a28b3124 (patch)
treeef4611149e16f2ceec906cc4980285365d2d48bc /term.c
parentea228aff6a872a947bb23cd1b1405ab1d72c37e6 (diff)
downloadmandoc-464bf99c7bec33718cdc95c963d3e5d3a28b3124.tar.gz
Made tree/term/out() functions return void.
Put err() functions back into front-ends (no use making it needlessly complex).
Diffstat (limited to 'term.c')
-rw-r--r--term.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/term.c b/term.c
index 6ea5aff0..0065754b 100644
--- a/term.c
+++ b/term.c
@@ -24,9 +24,9 @@
#include "man.h"
#include "mdoc.h"
-extern int man_run(struct termp *,
+extern void man_run(struct termp *,
const struct man *);
-extern int mdoc_run(struct termp *,
+extern void mdoc_run(struct termp *,
const struct mdoc *);
static struct termp *term_alloc(enum termenc);
@@ -51,7 +51,7 @@ ascii_alloc(void)
}
-int
+void
terminal_man(void *arg, const struct man *man)
{
struct termp *p;
@@ -60,11 +60,11 @@ terminal_man(void *arg, const struct man *man)
if (NULL == p->symtab)
p->symtab = term_ascii2htab();
- return(man_run(p, man));
+ man_run(p, man);
}
-int
+void
terminal_mdoc(void *arg, const struct mdoc *mdoc)
{
struct termp *p;
@@ -73,7 +73,7 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc)
if (NULL == p->symtab)
p->symtab = term_ascii2htab();
- return(mdoc_run(p, mdoc));
+ mdoc_run(p, mdoc);
}