mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-15 23:42:41 +00:00
Remove unnecessary if defined
This commit removes unnecessary if defined for multiple files as they are already guarded. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
parent
924dca9d39
commit
bef54c5003
@ -718,8 +718,6 @@ void mbedtls_test_err_add_check(int high, int low,
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
void (*mbedtls_test_hook_error_add)(int, int, const char *, int);
|
||||
#endif
|
||||
|
||||
#endif /* MBEDTLS_TEST_HOOKS */
|
||||
|
@ -16,9 +16,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(MBEDTLS_ERRORCOMMON_C)
|
||||
#include "mbedtls/error_common.h"
|
||||
#endif
|
||||
#include "mbedtls/platform.h"
|
||||
|
||||
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
|
||||
|
@ -232,9 +232,7 @@ int main(int argc, const char *argv[])
|
||||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
extern void (*mbedtls_test_hook_test_fail)(const char *test, int line, const char *file);
|
||||
mbedtls_test_hook_test_fail = &mbedtls_test_fail;
|
||||
#if defined(MBEDTLS_ERRORCOMMON_C)
|
||||
mbedtls_test_hook_error_add = &mbedtls_test_err_add_check;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Try changing to the directory containing the executable, if
|
||||
|
Loading…
x
Reference in New Issue
Block a user