summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2005-08-09 08:36:49 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2005-08-09 08:36:49 +0000
commit5803ac32c1e2cf5c676392cfe45ab0e4266f6429 (patch)
tree75b316aea61c35d90d0df35153138468b723ebe1 /lib/libc
parent5ea717098292e7334a1480ed01047658d4c0a348 (diff)
use CTYPE_NUM_CHARS instead of harding code the value. ok espie
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/toupper_.c4
1 files changed, 2 insertions, 2 deletions
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 <jtc@netbsd.org>.
* 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,