summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-25 15:12:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-25 15:12:45 +0000
commit8b02646f4fec38e60672aa1647f1ea0033d8a7c1 (patch)
tree4dd13543c206d7b74b8e4bb07ac6692530736bc8 /mdoc_term.c
parent8ed6a69e4d9860f9bace906849affaa24191bc26 (diff)
downloadmandoc-8b02646f4fec38e60672aa1647f1ea0033d8a7c1.tar.gz
Garbage collect two local variables each used only one single time.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 96639e98..404942b6 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1529,7 +1529,7 @@ termp_ft_pre(DECL_ARGS)
static int
termp_fn_pre(DECL_ARGS)
{
- size_t width, rmargin = 0;
+ size_t rmargin = 0;
int pretty;
pretty = MDOC_SYNPRETTY & n->flags;
@@ -1540,9 +1540,8 @@ termp_fn_pre(DECL_ARGS)
return(0);
if (pretty) {
- width = term_len(p, 4);
rmargin = p->rmargin;
- p->rmargin = p->offset + width;
+ p->rmargin = p->offset + term_len(p, 4);
p->flags |= TERMP_NOBREAK | TERMP_HANG;
}
@@ -2034,7 +2033,7 @@ termp_quote_post(DECL_ARGS)
static int
termp_fo_pre(DECL_ARGS)
{
- size_t width, rmargin = 0;
+ size_t rmargin = 0;
int pretty;
pretty = MDOC_SYNPRETTY & n->flags;
@@ -2044,9 +2043,8 @@ termp_fo_pre(DECL_ARGS)
return(1);
} else if (MDOC_BODY == n->type) {
if (pretty) {
- width = term_len(p, 4);
rmargin = p->rmargin;
- p->rmargin = p->offset + width;
+ p->rmargin = p->offset + term_len(p, 4);
p->flags |= TERMP_NOBREAK | TERMP_HANG;
}
p->flags |= TERMP_NOSPACE;