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 | 323df3a1959338fcada2958ee7d4506c60067f1b (patch) | |
tree | 4ce8570e68a0fae3b66a86d4980ee151d6192010 /strings.c | |
parent | a1a867fb1c1e2901c238afa76abb2f2168efca20 (diff) | |
download | mandoc-323df3a1959338fcada2958ee7d4506c60067f1b.tar.gz mandoc-323df3a1959338fcada2958ee7d4506c60067f1b.tar.zst mandoc-323df3a1959338fcada2958ee7d4506c60067f1b.zip |
Clean-ups & documentation.
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.7 2009/01/16 11:50:54 kristaps Exp $ */ +/* $Id: strings.c,v 1.8 2009/01/16 12:23:25 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -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")) |