From fd0ac1b8fba8a790cd3f4434536d4a539df1d886 Mon Sep 17 00:00:00 2001 From: crafcat7 Date: Wed, 22 Feb 2023 14:02:53 +0800 Subject: [PATCH] drivertest/block:Add FAR to the pointer --- testing/drivertest/drivertest_block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/drivertest/drivertest_block.c b/testing/drivertest/drivertest_block.c index 220e0c49a..790b813d0 100644 --- a/testing/drivertest/drivertest_block.c +++ b/testing/drivertest/drivertest_block.c @@ -170,7 +170,7 @@ static int setup(FAR void **state) FAR struct pre_build *pre_build; time_t t; - pre_build = (struct pre_build *)*state; + pre_build = (FAR struct pre_build *)*state; /* Allocate memory space and initialize */ @@ -202,7 +202,7 @@ static void blktest_stress(FAR void **state) char *output; uint32_t output_crc; - test_state = (struct test_state_s *)*state; + test_state = (FAR struct test_state_s *)*state; /* Create some random context */ @@ -250,7 +250,7 @@ static int teardown(FAR void **state) { FAR struct test_state_s *test_state; - test_state = (struct test_state_s *)*state; + test_state = (FAR struct test_state_s *)*state; close(test_state->fd); free(test_state);