summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2014-02-26 17:14:02 +0000
committerdes <des@FreeBSD.org>2014-02-26 17:14:02 +0000
commit8a82f5b94f6e507bc873f1b282627d3cd0f96b6f (patch)
treea3300e970d6836d8c7a6591bf27722e9cdd813a2 /contrib/openpam/lib
parenteaac5257ea0c95c2633356bbc4e58c02b2436a5e (diff)
parent4baac54a79605b45065e10092843b501b66c2aa6 (diff)
downloadFreeBSD-src-8a82f5b94f6e507bc873f1b282627d3cd0f96b6f.zip
FreeBSD-src-8a82f5b94f6e507bc873f1b282627d3cd0f96b6f.tar.gz
MFV (r262529): fix is_upper() predicate
MFC after: 1 week
Diffstat (limited to 'contrib/openpam/lib')
-rw-r--r--contrib/openpam/lib/libpam/openpam_ctype.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/openpam/lib/libpam/openpam_ctype.h b/contrib/openpam/lib/libpam/openpam_ctype.h
index 4f5888d..3801622 100644
--- a/contrib/openpam/lib/libpam/openpam_ctype.h
+++ b/contrib/openpam/lib/libpam/openpam_ctype.h
@@ -39,10 +39,18 @@
(ch >= '0' && ch <= '9')
/*
+ * Evaluates to non-zero if the argument is a hex digit.
+ */
+#define is_xdigit(ch) \
+ ((ch >= '0' && ch <= '9') || \
+ (ch >= 'a' && ch <= 'f') || \
+ (ch >= 'A' && ch <= 'F'))
+
+/*
* Evaluates to non-zero if the argument is an uppercase letter.
*/
#define is_upper(ch) \
- (ch >= 'A' && ch <= 'A')
+ (ch >= 'A' && ch <= 'Z')
/*
* Evaluates to non-zero if the argument is a lowercase letter.
OpenPOWER on IntegriCloud