diff options
author | Andy Polyakov <appro@openssl.org> | 2018-06-24 16:43:21 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-06-25 16:47:36 +0200 |
commit | fa339c69a6441ab79623c73f637e25018c735b49 (patch) | |
tree | fa3bd8d15007ab6d38a16a7e475f481f963826bf /crypto/store/loader_file.c | |
parent | PA-RISC assembly pack: make it work with GNU assembler for HP-UX. (diff) | |
download | openssl-fa339c69a6441ab79623c73f637e25018c735b49.tar.xz openssl-fa339c69a6441ab79623c73f637e25018c735b49.zip |
store/loader_file.c: fix char-subscripts warning.
This happens on systems that perform is* character classifictions as
array lookup, e.g. NetBSD.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6584)
Diffstat (limited to 'crypto/store/loader_file.c')
-rw-r--r-- | crypto/store/loader_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/store/loader_file.c b/crypto/store/loader_file.c index 1d36cd2fe7..25ada81721 100644 --- a/crypto/store/loader_file.c +++ b/crypto/store/loader_file.c @@ -1216,9 +1216,9 @@ static int file_name_check(OSSL_STORE_LOADER_CTX *ctx, const char *name) * Last, check that the rest of the extension is a decimal number, at * least one digit long. */ - if (!isdigit(*p)) + if (!ossl_isdigit(*p)) return 0; - while (isdigit(*p)) + while (ossl_isdigit(*p)) p++; # ifdef __VMS @@ -1227,7 +1227,7 @@ static int file_name_check(OSSL_STORE_LOADER_CTX *ctx, const char *name) */ if (*p == ';') for (p++; *p != '\0'; p++) - if (!isdigit(*p)) + if (!ossl_isdigit(*p)) break; # endif |