diff options
author | 2011-01-09 16:31:45 +0000 | |
---|---|---|
committer | 2011-01-09 16:31:45 +0000 | |
commit | ef400570d49eacbc8a8d125aa326e77a8711afde (patch) | |
tree | 97314698599067c50993d2226e93c21fb13e514e /usr.bin/mandoc/man_html.c | |
parent | Only .Bd -literal has 8-character tabs, (diff) | |
download | wireguard-openbsd-ef400570d49eacbc8a8d125aa326e77a8711afde.tar.xz wireguard-openbsd-ef400570d49eacbc8a8d125aa326e77a8711afde.zip |
Remove an unused variable, and use int for array indices (not size_t);
found by lint(1), fixed by kristaps@, no functional change.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r-- | usr.bin/mandoc/man_html.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c index 075f7ddd187..042a1ef1cd0 100644 --- a/usr.bin/mandoc/man_html.c +++ b/usr.bin/mandoc/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.29 2011/01/04 22:28:17 schwarze Exp $ */ +/* $Id: man_html.c,v 1.30 2011/01/09 16:31:45 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -501,7 +501,6 @@ man_IP_pre(MAN_ARGS) struct roffsu su; struct htmlpair tag; const struct man_node *nn; - int width; /* * This scattering of 1-BU margins and pads is to make sure that @@ -519,13 +518,12 @@ man_IP_pre(MAN_ARGS) n->head->child : n->parent->head->child; SCALE_HS_INIT(&su, INDENT); - width = 0; /* Width is the second token. */ if (MAN_IP == n->tok && NULL != nn) if (NULL != (nn = nn->next)) - width = a2width(nn, &su); + a2width(nn, &su); /* Width is the first token. */ @@ -534,7 +532,7 @@ man_IP_pre(MAN_ARGS) while (nn && MAN_TEXT != nn->type) nn = nn->next; if (nn) - width = a2width(nn, &su); + a2width(nn, &su); } if (MAN_BLOCK == n->type) { |