aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-14 22:44:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-14 22:44:55 +0000
commita75cd602ebfaf527c83177aa31df55e03e2e854e (patch)
treed3e741e23d8fa363adac0a34b4179d47ab270190 /tbl.c
parente54b1e9f0f881374060eef0e4c54bdd192cf7f34 (diff)
downloadmandoc-a75cd602ebfaf527c83177aa31df55e03e2e854e.tar.gz
mandoc-a75cd602ebfaf527c83177aa31df55e03e2e854e.tar.zst
mandoc-a75cd602ebfaf527c83177aa31df55e03e2e854e.zip
simplify by getting rid of ROFF_ERR in tbl(7) parsing; no functional change
Diffstat (limited to 'tbl.c')
-rw-r--r--tbl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tbl.c b/tbl.c
index bfed242b..dc59266d 100644
--- a/tbl.c
+++ b/tbl.c
@@ -1,4 +1,4 @@
-/* $Id: tbl.c,v 1.30 2014/08/10 23:54:41 schwarze Exp $ */
+/* $Id: tbl.c,v 1.31 2015/01/14 22:44:55 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -55,9 +55,11 @@ tbl_read(struct tbl_node *tbl, int ln, const char *p, int offs)
switch (tbl->part) {
case TBL_PART_OPTS:
- return(tbl_option(tbl, ln, p) ? ROFF_IGN : ROFF_ERR);
+ tbl_option(tbl, ln, p);
+ return(ROFF_IGN);
case TBL_PART_LAYOUT:
- return(tbl_layout(tbl, ln, p) ? ROFF_IGN : ROFF_ERR);
+ tbl_layout(tbl, ln, p);
+ return(ROFF_IGN);
case TBL_PART_CDATA:
return(tbl_cdata(tbl, ln, p) ? ROFF_TBL : ROFF_IGN);
default: