=================================================================== RCS file: /cvs/mandoc/man_term.c,v retrieving revision 1.40 retrieving revision 1.42 diff -u -p -r1.40 -r1.42 --- mandoc/man_term.c 2009/10/18 19:03:37 1.40 +++ mandoc/man_term.c 2009/10/21 03:31:49 1.42 @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.40 2009/10/18 19:03:37 kristaps Exp $ */ +/* $Id: man_term.c,v 1.42 2009/10/21 03:31:49 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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)); } @@ -914,7 +914,7 @@ print_foot(struct termp *p, const struct man_meta *met tm = localtime(&meta->date); - if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm)) + if (0 == strftime(buf, p->rmargin, "%B %e, %Y", tm)) (void)strlcpy(buf, "(invalid date)", BUFSIZ); term_vspace(p);