summaryrefslogtreecommitdiffstatshomepage
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
commit6cbefd50d90dc947c06ea2212c4d3552c4a36c84 (patch)
treed619d6d32e6db6da1019b07c4b26c1cb7c294016 /term.c
parent5e3756471dbadb7858086a17760f20e36e105612 (diff)
downloadmandoc-6cbefd50d90dc947c06ea2212c4d3552c4a36c84.tar.gz
mandoc-6cbefd50d90dc947c06ea2212c4d3552c4a36c84.tar.zst
mandoc-6cbefd50d90dc947c06ea2212c4d3552c4a36c84.zip
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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/term.c b/term.c
index 06440992..56d8a887 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.98 2009/09/15 08:16:20 kristaps Exp $ */
+/* $Id: term.c,v 1.99 2009/09/16 09:41:24 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);
}