aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-25 12:32:50 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-25 12:32:50 +0000
commit0ed26b313243fe8d50014289e52f043f61782286 (patch)
treea20f7650e09d94b0d4db137fe406836d9ec3fc58 /strings.c
parenta017287dafe633c9f23e9990989b55dea239344c (diff)
downloadmandoc-0ed26b313243fe8d50014289e52f043f61782286.tar.gz
mandoc-0ed26b313243fe8d50014289e52f043f61782286.tar.zst
mandoc-0ed26b313243fe8d50014289e52f043f61782286.zip
NetBSD Lintified.
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/strings.c b/strings.c
index accca571..78ff9d9a 100644
--- a/strings.c
+++ b/strings.c
@@ -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 <kristaps@kth.se>
*
@@ -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)