From 026b372a01e67e181d068c2db7e82290d9e71803 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 2 Feb 2006 09:03:52 +0000 Subject: * timezone/private.h: Update from tzcode2006a. * timezone/scheck.c: Likewise. * timezone/asia: Update from tzdata2006a. * timezone/northamerica: Likewise. * timezone/zone.tab: Likewise. --- timezone/scheck.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'timezone/scheck.c') diff --git a/timezone/scheck.c b/timezone/scheck.c index 2dd9b35..bc15637 100644 --- a/timezone/scheck.c +++ b/timezone/scheck.c @@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)scheck.c 8.16"; +static char elsieid[] = "@(#)scheck.c 8.17"; #endif /* !defined lint */ #endif /* !defined NOID */ @@ -8,20 +8,19 @@ static char elsieid[] = "@(#)scheck.c 8.16"; #include "private.h" -char * +const char * scheck(string, format) const char * const string; -char * const format; +const char * const format; { register char * fbuf; register const char * fp; register char * tp; register int c; - register char * result; + register const char * result; char dummy; - static char nada; - result = &nada; + result = ""; if (string == NULL || format == NULL) return result; fbuf = imalloc((int) (2 * strlen(format) + 4)); -- cgit v1.1