diff options
author | wollman <wollman@FreeBSD.org> | 1996-07-18 19:40:52 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-07-18 19:40:52 +0000 |
commit | 36fc966ce892d8926435297eb927a3101e7bfd0f (patch) | |
tree | 6944ed31502654cc7442ad1d888f345d8b7c2217 /usr.sbin/zic/scheck.c | |
parent | 3b55c38a3dabeb1fd80f47ae28ba34c4703de3a1 (diff) | |
parent | aff84ecc8f819a5f1134a83c067f8d7abf813138 (diff) | |
download | FreeBSD-src-36fc966ce892d8926435297eb927a3101e7bfd0f.zip FreeBSD-src-36fc966ce892d8926435297eb927a3101e7bfd0f.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r17211,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'usr.sbin/zic/scheck.c')
-rw-r--r-- | usr.sbin/zic/scheck.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/zic/scheck.c b/usr.sbin/zic/scheck.c index 4d9616d..64f2507 100644 --- a/usr.sbin/zic/scheck.c +++ b/usr.sbin/zic/scheck.c @@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)scheck.c 8.11"; +static char elsieid[] = "@(#)scheck.c 8.13"; #endif /* !defined lint */ #endif /* !defined NOID */ @@ -14,7 +14,7 @@ extern void ifree P((char * p)); char * scheck(string, format) const char * const string; -const char * const format; +char * const format; { register char * fbuf; register const char * fp; @@ -22,12 +22,12 @@ const char * const format; register int c; register char * result; char dummy; - static char nada[1]; + static char nada; - result = nada; + result = &nada; if (string == NULL || format == NULL) return result; - fbuf = imalloc(2 * strlen(format) + 4); + fbuf = imalloc((int) (2 * strlen(format) + 4)); if (fbuf == NULL) return result; fp = format; @@ -42,7 +42,7 @@ const char * const format; *tp++ = '*'; if (*fp == '*') ++fp; - while (isascii(*fp) && isdigit(*fp)) + while (is_digit(*fp)) *tp++ = *fp++; if (*fp == 'l' || *fp == 'h') *tp++ = *fp++; |