summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-18 19:17:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-18 19:17:14 +0000
commit6a3426b96c463f334433958c29fec62d57e1b201 (patch)
tree8624489cf5a35b9a241b18c83f15fe48afbb6dcc /man_term.c
parentb24acbb5f3ae16c8a4e9645043803117dda71323 (diff)
downloadmandoc-6a3426b96c463f334433958c29fec62d57e1b201.tar.gz
Lint fixes.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/man_term.c b/man_term.c
index a29f0af1..11d15c3c 100644
--- a/man_term.c
+++ b/man_term.c
@@ -191,7 +191,7 @@ arg2height(const struct man_node *n)
if ( ! a2roffsu(n->string, &su, SCALE_VS))
SCALE_VS_INIT(&su, strlen(n->string));
- return(term_vspan(&su));
+ return((int)term_vspan(&su));
}
@@ -203,9 +203,9 @@ arg2width(const struct man_node *n)
assert(MAN_TEXT == n->type);
assert(n->string);
if ( ! a2roffsu(n->string, &su, SCALE_BU))
- SCALE_HS_INIT(&su, strlen(n->string) + 2);
+ return(-1);
- return(term_hspan(&su));
+ return((int)term_hspan(&su));
}