mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Constify cipher_wrap:mbedtls_cipher_base_lookup_table
This structure is initialized during the compilation and there is no reason it changes. Making it const allows the compiler to put it in .rodata section instead of .data one. Signed-off-by: Xavier Chapron <chapron.xavier@gmail.com>
This commit is contained in:
@ -169,7 +169,7 @@ extern const mbedtls_cipher_definition_t mbedtls_cipher_definitions[];
|
||||
|
||||
extern int mbedtls_cipher_supported[];
|
||||
|
||||
extern const mbedtls_cipher_base_t *mbedtls_cipher_base_lookup_table[];
|
||||
extern const mbedtls_cipher_base_t * const mbedtls_cipher_base_lookup_table[];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user