diff options
author | Patrick Steuer <psteuer@mail.de> | 2016-10-15 16:54:52 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-05-11 18:19:11 +0200 |
commit | 01b30563b97d01477e2ab577a8a268991696c6e1 (patch) | |
tree | 3f0e07aaa8a019c25a0f11492fee012b711eeb2b /crypto/asn1 | |
parent | d9d4122dd15c388a245c4edb28144ea919f9ddf1 (diff) |
Fix strict-warnings build
crypto/asn1/a_strex.c: Type of width variable in asn1_valid_host
function needs to be changed from char to signed char to avoid
build error due to '-Werror=type-limits'.
Signed-off-by: Patrick Steuer <psteuer@mail.de>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
CLA: trivial
(cherry picked from commit 34657a8da2ead453460d668771984432cc767044)
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/a_strex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c index 9839f5c76e..1bc06799af 100644 --- a/crypto/asn1/a_strex.c +++ b/crypto/asn1/a_strex.c @@ -601,7 +601,7 @@ int asn1_valid_host(const ASN1_STRING *host) const unsigned char *hostptr = host->data; int type = host->type; int i; - char width = -1; + signed char width = -1; unsigned short chflags = 0, prevchflags; if (type > 0 && type < 31) |