summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 09:39:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 09:39:40 +0000
commit79f971e5f7cb6c69d1b2ed2d38a5bccd604a24f5 (patch)
treee79a27c76524024d5fa19f0e46c5dcb1f257d997 /term.c
parent7b98305324c48ff2b74e270c6b4a44f644a56350 (diff)
downloadmandoc-79f971e5f7cb6c69d1b2ed2d38a5bccd604a24f5.tar.gz
Lintified sources.
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/term.c b/term.c
index 4a9e93d1..668d4709 100644
--- a/term.c
+++ b/term.c
@@ -277,7 +277,8 @@ const struct termact *termacts = __termacts;
static size_t
arg_width(const struct mdoc_arg *arg)
{
- size_t len, i, v;
+ size_t v;
+ int i, len;
assert(*arg->value);
if (0 == strcmp(*arg->value, "indent"))
@@ -285,7 +286,7 @@ arg_width(const struct mdoc_arg *arg)
if (0 == strcmp(*arg->value, "indent-two"))
return(INDENT * 2);
- len = strlen(*arg->value);
+ len = (int)strlen(*arg->value);
assert(len > 0);
for (i = 0; i < len - 1; i++)