summaryrefslogtreecommitdiff
path: root/usr.sbin/zic
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/zic')
-rw-r--r--usr.sbin/zic/scheck.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/zic/scheck.c b/usr.sbin/zic/scheck.c
index 268c2a38538..661cc9d448b 100644
--- a/usr.sbin/zic/scheck.c
+++ b/usr.sbin/zic/scheck.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: scheck.c,v 1.1 2015/02/09 12:37:47 tedu Exp $ */
+/* $OpenBSD: scheck.c,v 1.2 2015/02/09 13:03:59 tedu Exp $ */
/*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
-/*LINTLIBRARY*/
+#include <ctype.h>
#include "private.h"
@@ -13,11 +13,11 @@ scheck(string, format)
const char * const string;
const char * const format;
{
- register char * fbuf;
- register const char * fp;
- register char * tp;
- register int c;
- register const char * result;
+ char * fbuf;
+ const char * fp;
+ char * tp;
+ int c;
+ const char * result;
char dummy;
result = "";
@@ -38,7 +38,7 @@ const char * const format;
*tp++ = '*';
if (*fp == '*')
++fp;
- while (is_digit(*fp))
+ while (isdigit((unsigned char)*fp))
*tp++ = *fp++;
if (*fp == 'l' || *fp == 'h')
*tp++ = *fp++;