From 47b7540fec350b77e76c9fc47a19878e5866750b Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 16 Sep 2019 15:12:51 +0200 Subject: [PATCH] Give a type name to test_info Make it possible to pass test_info around rather than always refer to the global variable. --- tests/suites/helpers.function | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index b4b6d7286..5d0a3906d 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -271,7 +271,7 @@ typedef enum TEST_RESULT_SKIPPED } test_result_t; -static struct +typedef struct { paramfail_test_state_t paramfail_test_state; test_result_t result; @@ -279,7 +279,8 @@ static struct const char *filename; int line_no; } -test_info; +test_info_t; +static test_info_t test_info; #if defined(MBEDTLS_PLATFORM_C) mbedtls_platform_context platform_ctx;