summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-28 06:27:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-28 06:27:05 +0000
commitb7ed451bab9b712963df52a4f4ea0783fa4941d7 (patch)
tree5fb21a5e9b0f03fbe26d8bec4debbf45ca34578a /man.c
parentcfd12f597e8f3e9e5acc3bfbeeef43065481d942 (diff)
downloadmandoc-b7ed451bab9b712963df52a4f4ea0783fa4941d7.tar.gz
Simplify by making the eqn and tbl steering functions void;
no functional change, minus 15 lines of code.
Diffstat (limited to 'man.c')
-rw-r--r--man.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/man.c b/man.c
index a6fdbb18..bc634341 100644
--- a/man.c
+++ b/man.c
@@ -317,7 +317,7 @@ man_node_delete(struct man *man, struct man_node *p)
man_node_free(p);
}
-int
+void
man_addeqn(struct man *man, const struct eqn *ep)
{
struct man_node *n;
@@ -329,10 +329,9 @@ man_addeqn(struct man *man, const struct eqn *ep)
man_node_append(man, n);
man->next = MAN_NEXT_SIBLING;
man_descope(man, ep->ln, ep->pos);
- return(1);
}
-int
+void
man_addspan(struct man *man, const struct tbl_span *sp)
{
struct man_node *n;
@@ -342,7 +341,6 @@ man_addspan(struct man *man, const struct tbl_span *sp)
man_node_append(man, n);
man->next = MAN_NEXT_SIBLING;
man_descope(man, sp->line, 0);
- return(1);
}
static void