diff options
| author | Edwin Groothuis <edwin@FreeBSD.org> | 2009-05-20 12:24:39 +0000 |
|---|---|---|
| committer | Edwin Groothuis <edwin@FreeBSD.org> | 2009-05-20 12:24:39 +0000 |
| commit | 80ca36b52f4732dba27b6bb58743c0f1ab5bd8e3 (patch) | |
| tree | cd528237b1dd33b0e7b4ab1179bf58a6cde867b1 /zic/scheck.c | |
| parent | 9556ff65cd40f2afcdbab50cd76fc44ed2d3dcc3 (diff) | |
Diffstat (limited to 'zic/scheck.c')
| -rw-r--r-- | zic/scheck.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/zic/scheck.c b/zic/scheck.c index 39feeba70117..74d9b07c149b 100644 --- a/zic/scheck.c +++ b/zic/scheck.c @@ -1,6 +1,11 @@ +/* +** This file is in the public domain, so clarified as of +** 2006-07-17 by Arthur David Olson. +*/ + #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)scheck.c 8.15"; +static char elsieid[] = "@(#)scheck.c 8.19"; #endif /* !defined lint */ #endif /* !defined NOID */ @@ -8,7 +13,7 @@ static char elsieid[] = "@(#)scheck.c 8.15"; #include "private.h" -char * +const char * scheck(string, format) const char * const string; const char * const format; @@ -17,11 +22,10 @@ const char * const format; 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)); |
