diff options
author | 2014-07-07 19:17:39 +0000 | |
---|---|---|
committer | 2014-07-07 19:17:39 +0000 | |
commit | 8b93ac397d2b5cf7bdc4d5eacc35a726f39f7b5f (patch) | |
tree | 383c870f94ba3062c4a87ef31c2ba154f57dd93b /usr.bin/mandoc/man.c | |
parent | sometimes, the callback happens when the archive isn't opened... (diff) | |
download | wireguard-openbsd-8b93ac397d2b5cf7bdc4d5eacc35a726f39f7b5f.tar.xz wireguard-openbsd-8b93ac397d2b5cf7bdc4d5eacc35a726f39f7b5f.zip |
Simplify man_unscope(), removing 18 lines of code, that is,
removing one function argument, one function definition,
three function invocations and two pointless assert()s.
No functional change.
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r-- | usr.bin/mandoc/man.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index ae94e373923..a38ff9e9675 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.81 2014/07/06 19:08:56 schwarze Exp $ */ +/* $Id: man.c,v 1.82 2014/07/07 19:17:39 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -388,7 +388,7 @@ man_descope(struct man *man, int line, int offs) if (MAN_ELINE & man->flags) { man->flags &= ~MAN_ELINE; - if ( ! man_unscope(man, man->last->parent, MANDOCERR_MAX)) + if ( ! man_unscope(man, man->last->parent)) return(0); } @@ -396,7 +396,7 @@ man_descope(struct man *man, int line, int offs) return(1); man->flags &= ~MAN_BLINE; - if ( ! man_unscope(man, man->last->parent, MANDOCERR_MAX)) + if ( ! man_unscope(man, man->last->parent)) return(0); return(man_body_alloc(man, line, offs, man->last->tok)); } @@ -635,7 +635,7 @@ man_pmacro(struct man *man, int ln, char *buf, int offs) assert(MAN_BLINE & man->flags); man->flags &= ~MAN_BLINE; - if ( ! man_unscope(man, man->last->parent, MANDOCERR_MAX)) + if ( ! man_unscope(man, man->last->parent)) return(0); return(man_body_alloc(man, ln, ppos, man->last->tok)); |