aboutsummaryrefslogtreecommitdiff
path: root/timezone/scheck.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-02-02 09:03:52 +0000
committerRoland McGrath <roland@gnu.org>2006-02-02 09:03:52 +0000
commit026b372a01e67e181d068c2db7e82290d9e71803 (patch)
tree57c0b5fcd0da43017fef3db47d3ca3654440f080 /timezone/scheck.c
parent05fcaaeea4c41115ff37ed60acfa2f5e7c73b676 (diff)
downloadglibc-026b372a01e67e181d068c2db7e82290d9e71803.zip
glibc-026b372a01e67e181d068c2db7e82290d9e71803.tar.gz
glibc-026b372a01e67e181d068c2db7e82290d9e71803.tar.bz2
* timezone/private.h: Update from tzcode2006a.
* timezone/scheck.c: Likewise. * timezone/asia: Update from tzdata2006a. * timezone/northamerica: Likewise. * timezone/zone.tab: Likewise.
Diffstat (limited to 'timezone/scheck.c')
-rw-r--r--timezone/scheck.c11
1 files changed, 5 insertions, 6 deletions
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));