diff options
author | x2018 <xkernel.wang@foxmail.com> | 2021-10-26 15:16:18 +0800 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-10-28 13:10:46 +1000 |
commit | 1287dabd0b23326be491125698dd982e4ae28887 (patch) | |
tree | 3d6a62803bdd3d8ca9378eda3e7316a9c995c001 /crypto/cpuid.c | |
parent | 01451721afebabd0b7bdcd4cb3a183c9b590d266 (diff) |
fix some code with obvious wrong coding style
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16918)
Diffstat (limited to 'crypto/cpuid.c')
-rw-r--r-- | crypto/cpuid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cpuid.c b/crypto/cpuid.c index 090f6fe03e..048689f410 100644 --- a/crypto/cpuid.c +++ b/crypto/cpuid.c @@ -71,7 +71,7 @@ static uint64_t ossl_strtouint64(const variant_char *str) base = 16, str++; } - while((digit = todigit(*str++)) < base) + while ((digit = todigit(*str++)) < base) ret = ret * base + digit; return ret; @@ -80,7 +80,7 @@ static uint64_t ossl_strtouint64(const variant_char *str) static variant_char *ossl_strchr(const variant_char *str, char srch) { variant_char c; - while((c = *str)) { + while ((c = *str)) { if (c == srch) return (variant_char *)str; str++; |