From c74097c1c76c3ae87b18a8dc37e6531f331b52a3 Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Tue, 7 Nov 2023 13:31:25 -0500 Subject: [PATCH] Use uint8_t not u_int8_t (#1287) (cherry picked from commit c3cbc46bd67de6af343deaf8b9da21d843ef341c) --- crypto/dynamic_loading_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crypto/dynamic_loading_test.c b/crypto/dynamic_loading_test.c index dce8509518..36f6e34104 100644 --- a/crypto/dynamic_loading_test.c +++ b/crypto/dynamic_loading_test.c @@ -19,23 +19,24 @@ // `-DLIBCRYPTO_PATH=<>` when built. #include -#include #ifdef LIBCRYPTO_PATH +#include +#include #include #include typedef void (*fp_lc_clear_error_t)(void); typedef int (*fp_lc_tl_func_t)(void); -typedef int (*fp_rand_bytes_t)(u_int8_t *buf, size_t len); +typedef int (*fp_rand_bytes_t)(uint8_t *buf, size_t len); #define BUFFER_SIZE 16 #define TEST_ITERS 10 #define THREAD_COUNT 10 static void *cycle_thread_local_setup(void *lc_so) { - u_int8_t buffer[BUFFER_SIZE]; + uint8_t buffer[BUFFER_SIZE]; fp_lc_clear_error_t lc_clear_error = dlsym(lc_so, "ERR_clear_error"); fp_rand_bytes_t lc_rand_bytes = dlsym(lc_so, "RAND_bytes"); fp_lc_tl_func_t lc_tl_clear = dlsym(lc_so, "AWSLC_thread_local_clear");