diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-16 12:23:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-16 12:23:25 +0000 |
commit | d460b17b87e787b48938270b20eb4088e5c343ab (patch) | |
tree | 327c0f9b78231c4427c0222aba82f007a6e28ba7 /strings.c | |
parent | c3f113eda71022f3ea3245ce53f3878057139149 (diff) | |
download | mandoc-d460b17b87e787b48938270b20eb4088e5c343ab.tar.gz |
Clean-ups & documentation.
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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")) |