mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-26 11:37:09 +00:00
Add const specifiers to pacify armclang
Functions designed for local scope only should be const Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
7c6686014b
commit
a698976fdb
@ -11,14 +11,14 @@
|
||||
#if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C)
|
||||
int mbedtls_codepath_check = MBEDTLS_MPI_IS_TEST;
|
||||
|
||||
void mbedtls_codepath_take_safe(void)
|
||||
static void mbedtls_codepath_take_safe(void)
|
||||
{
|
||||
if (mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST) {
|
||||
mbedtls_codepath_check = MBEDTLS_MPI_IS_SECRET;
|
||||
}
|
||||
}
|
||||
|
||||
void mbedtls_codepath_take_unsafe(void)
|
||||
static void mbedtls_codepath_take_unsafe(void)
|
||||
{
|
||||
mbedtls_codepath_check = MBEDTLS_MPI_IS_PUBLIC;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user