diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-01-14 22:44:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-01-14 22:44:52 +0000 |
commit | f4561c9eefe0652134b0b1bf1ea3de2554dcb7fb (patch) | |
tree | 666049e83e15fa93ff7783cb63d5e873ddfc48bf /usr.bin/mandoc/tbl.c | |
parent | 07829df3582bc8ec30190114984e89148ae9fc5d (diff) |
simplify by getting rid of ROFF_ERR in tbl(7) parsing; no functional change
Diffstat (limited to 'usr.bin/mandoc/tbl.c')
-rw-r--r-- | usr.bin/mandoc/tbl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/mandoc/tbl.c b/usr.bin/mandoc/tbl.c index 6d16d665050..91503becb34 100644 --- a/usr.bin/mandoc/tbl.c +++ b/usr.bin/mandoc/tbl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tbl.c,v 1.11 2014/11/28 19:25:03 schwarze Exp $ */ +/* $OpenBSD: tbl.c,v 1.12 2015/01/14 22:44:51 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -53,9 +53,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: |