From 5d8feabb42f418609cd7b4cf637f55fbf92b7b88 Mon Sep 17 00:00:00 2001 From: schwarze Date: Wed, 25 Dec 2013 15:12:39 +0000 Subject: [PATCH] Garbage collect two local variables each used only one single time. --- usr.bin/mandoc/mdoc_term.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 1888ffd2105..8185419b591 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.158 2013/12/25 14:40:29 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.159 2013/12/25 15:12:39 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013 Ingo Schwarze @@ -1525,7 +1525,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; @@ -1536,9 +1536,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; } @@ -2030,7 +2029,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; @@ -2040,9 +2039,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; -- 2.20.1