=================================================================== RCS file: /cvs/mandoc/Attic/strings.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -p -r1.18 -r1.19 --- mandoc/Attic/strings.c 2009/02/24 14:52:55 1.18 +++ mandoc/Attic/strings.c 2009/02/25 12:32:50 1.19 @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.18 2009/02/24 14:52:55 kristaps Exp $ */ +/* $Id: strings.c,v 1.19 2009/02/25 12:32:50 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -62,9 +62,9 @@ mdoc_isescape(const char *p) case ('e'): return(2); case ('('): - if (0 == *++p || ! isgraph(*p)) + if (0 == *++p || ! isgraph((int)*p)) return(0); - if (0 == *++p || ! isgraph(*p)) + if (0 == *++p || ! isgraph((int)*p)) return(0); return(4); case ('['): @@ -74,7 +74,7 @@ mdoc_isescape(const char *p) } for (c = 3, p++; *p && ']' != *p; p++, c++) - if ( ! isgraph(*p)) + if ( ! isgraph((int)*p)) break; return(*p == ']' ? c : 0); @@ -178,9 +178,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: February 24 2009 $")) + if (xstrcmp(p, "$Mdocdate: February 25 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: February 24 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: February 25 2009 $", &tm)) && 0 == *pp) return(mktime(&tm)); /* XXX - this matches "June 1999", which is wrong. */ if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp)