From 5803ac32c1e2cf5c676392cfe45ab0e4266f6429 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Tue, 9 Aug 2005 08:36:49 +0000 Subject: use CTYPE_NUM_CHARS instead of harding code the value. ok espie --- lib/libc/gen/toupper_.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/gen') diff --git a/lib/libc/gen/toupper_.c b/lib/libc/gen/toupper_.c index ac228a7453f..40931992d80 100644 --- a/lib/libc/gen/toupper_.c +++ b/lib/libc/gen/toupper_.c @@ -1,4 +1,4 @@ -/* $OpenBSD: toupper_.c,v 1.9 2005/08/08 08:05:34 espie Exp $ */ +/* $OpenBSD: toupper_.c,v 1.10 2005/08/09 08:36:48 kevlo Exp $ */ /* * Written by J.T. Conklin . * Public domain. @@ -10,7 +10,7 @@ #include "ctype_private.h" -const short _C_toupper_[1 + 256] = { +const short _C_toupper_[1 + CTYPE_NUM_CHARS] = { EOF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, -- cgit v1.2.3