=================================================================== RCS file: /cvs/mandoc/term_ascii.c,v retrieving revision 1.11 retrieving revision 1.13 diff -u -p -r1.11 -r1.13 --- mandoc/term_ascii.c 2011/01/02 12:21:07 1.11 +++ mandoc/term_ascii.c 2011/05/14 17:54:42 1.13 @@ -1,4 +1,4 @@ -/* $Id: term_ascii.c,v 1.11 2011/01/02 12:21:07 kristaps Exp $ */ +/* $Id: term_ascii.c,v 1.13 2011/05/14 17:54:42 kristaps Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons * @@ -33,12 +33,12 @@ static double ascii_hspan(const struct termp *, const struct roffsu *); -static size_t ascii_width(const struct termp *, char); +static size_t ascii_width(const struct termp *, int); static void ascii_advance(struct termp *, size_t); static void ascii_begin(struct termp *); static void ascii_end(struct termp *); static void ascii_endline(struct termp *); -static void ascii_letter(struct termp *, char); +static void ascii_letter(struct termp *, int); void * @@ -48,8 +48,7 @@ ascii_alloc(char *outopts) const char *toks[2]; char *v; - if (NULL == (p = term_alloc(TERMENC_ASCII))) - return(NULL); + p = term_alloc(TERMENC_ASCII); p->tabwidth = 5; p->defrmargin = 78; @@ -85,7 +84,7 @@ ascii_alloc(char *outopts) /* ARGSUSED */ static size_t -ascii_width(const struct termp *p, char c) +ascii_width(const struct termp *p, int c) { return(1); @@ -102,7 +101,7 @@ ascii_free(void *arg) /* ARGSUSED */ static void -ascii_letter(struct termp *p, char c) +ascii_letter(struct termp *p, int c) { /* LINTED */