summaryrefslogtreecommitdiffstats
path: root/strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-16 12:23:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-16 12:23:25 +0000
commitd460b17b87e787b48938270b20eb4088e5c343ab (patch)
tree327c0f9b78231c4427c0222aba82f007a6e28ba7 /strings.c
parentc3f113eda71022f3ea3245ce53f3878057139149 (diff)
downloadmandoc-d460b17b87e787b48938270b20eb4088e5c343ab.tar.gz
Clean-ups & documentation.
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/strings.c b/strings.c
index 3966a4d0..05015267 100644
--- a/strings.c
+++ b/strings.c
@@ -135,9 +135,9 @@ mdoc_atotime(const char *p)
(void)memset(&tm, 0, sizeof(struct tm));
- if (strptime(p, "%b %d %Y", &tm))
+ if (0 == strptime(p, "%b %d %Y", &tm))
return(mktime(&tm));
- if (strptime(p, "%b %d, %Y", &tm))
+ if (0 == strptime(p, "%b %d, %Y", &tm))
return(mktime(&tm));
return(0);
@@ -228,6 +228,8 @@ mdoc_atoarch(const char *p)
return(ARCH_amiga);
else if (0 == strcmp(p, "arc"))
return(ARCH_arc);
+ else if (0 == strcmp(p, "arm"))
+ return(ARCH_arm);
else if (0 == strcmp(p, "armish"))
return(ARCH_armish);
else if (0 == strcmp(p, "aviion"))