From 9275a05a090b366b47ed479d15472e058b8d8318 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 21 Feb 2009 21:00:06 +0000 Subject: Split mdocml -> mdocterm, mdoctree (new manuals, etc.). Escape-recognition term.c. --- strings.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'strings.c') diff --git a/strings.c b/strings.c index 960800dc..d92f1f29 100644 --- a/strings.c +++ b/strings.c @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.12 2009/02/20 23:35:36 kristaps Exp $ */ +/* $Id: strings.c,v 1.13 2009/02/21 21:00:06 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -128,9 +128,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: February 20 2009 $")) + if (xstrcmp(p, "$Mdocdate: February 21 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: February 20 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: February 21 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) @@ -336,7 +336,7 @@ mdoc_type2a(enum mdoc_type type) } -char * +const char * mdoc_arch2a(enum mdoc_arch arch) { @@ -404,7 +404,7 @@ mdoc_arch2a(enum mdoc_arch arch) } -char * +const char * mdoc_vol2a(enum mdoc_vol vol) { @@ -438,7 +438,7 @@ mdoc_vol2a(enum mdoc_vol vol) } -char * +const char * mdoc_msec2a(enum mdoc_msec msec) { -- cgit v1.2.3-56-ge451