summaryrefslogtreecommitdiff
path: root/usr.sbin/zic
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-02-09 13:04:00 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-02-09 13:04:00 +0000
commitae56d15b089c2097d43916553b300243a6661def (patch)
tree59da104df3defc2e3a2f82912b9134db212caedd /usr.sbin/zic
parent02f944c53baa0940ebbdd11c7da5516218a39598 (diff)
replace homegrown is_digit with correct calls to isdigit()
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++;