diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2002-06-23 06:16:05 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2002-06-23 06:16:05 +0000 |
commit | ad9b6ce48ad73a915fd57a99c65d439ece7c9d18 (patch) | |
tree | 1cb5f8f9237ff6866402296b51eb13a2b8e1436c /test/cls.c | |
parent | fe37fe186ae543e341b78d04c48ac19b9e36be66 (diff) | |
download | httpd-ad9b6ce48ad73a915fd57a99c65d439ece7c9d18.tar.gz |
Adapt to use apr_ischar()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95860 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/cls.c')
-rw-r--r-- | test/cls.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/cls.c b/test/cls.c index 91114a784c..e5910d885a 100644 --- a/test/cls.c +++ b/test/cls.c @@ -22,19 +22,19 @@ static int checkmask(const char *data, const char *mask) ch = mask[i]; d = data[i]; if (ch == '@') { - if (!isupper(d)) + if (!apr_isupper(d)) return 0; } else if (ch == '$') { - if (!islower(d)) + if (!apr_islower(d)) return 0; } else if (ch == '#') { - if (!isdigit(d)) + if (!apr_isdigit(d)) return 0; } else if (ch == '&') { - if (!isxdigit(d)) + if (!apr_isxdigit(d)) return 0; } else if (ch != d) @@ -58,9 +58,9 @@ static int hex2sec(const char *x) for (i = 0, j = 0; i < 8; i++) { ch = x[i]; j <<= 4; - if (isdigit(ch)) + if (apr_isdigit(ch)) j |= ch - '0'; - else if (isupper(ch)) + else if (apr_isupper(ch)) j |= ch - ('A' - 10); else j |= ch - ('a' - 10); |