summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-07 19:18:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-07 19:18:15 +0000
commit71a6145d9952e8d6805013e811b83ccbbd56b508 (patch)
tree54e5d9da3e22415f2fc6e00c7f2f3ac1a939aaac /man.c
parentc18d0f9e2a163f2a731c362f2e48833cbf72885d (diff)
downloadmandoc-71a6145d9952e8d6805013e811b83ccbbd56b508.tar.gz
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 'man.c')
-rw-r--r--man.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/man.c b/man.c
index c919ded3..95e7d38e 100644
--- a/man.c
+++ b/man.c
@@ -392,7 +392,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);
}
@@ -400,7 +400,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));
}
@@ -639,7 +639,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));