mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Fix style in NUM_CIPHERS definition in cipher_wrap.c
Use brackets around `sizeof()` arguments as well as the entire macro.
This commit is contained in:
parent
2e009fe013
commit
0953ba1899
@ -2266,7 +2266,8 @@ const mbedtls_cipher_definition_t mbedtls_cipher_definitions[] =
|
|||||||
{ MBEDTLS_CIPHER_NONE, NULL }
|
{ MBEDTLS_CIPHER_NONE, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NUM_CIPHERS sizeof mbedtls_cipher_definitions / sizeof mbedtls_cipher_definitions[0]
|
#define NUM_CIPHERS ( sizeof(mbedtls_cipher_definitions) / \
|
||||||
|
sizeof(mbedtls_cipher_definitions[0]) )
|
||||||
int mbedtls_cipher_supported[NUM_CIPHERS];
|
int mbedtls_cipher_supported[NUM_CIPHERS];
|
||||||
|
|
||||||
#endif /* MBEDTLS_CIPHER_C */
|
#endif /* MBEDTLS_CIPHER_C */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user