This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new b8533e0f7 drivertest/gpio:Add FAR to the pointer
b8533e0f7 is described below

commit b8533e0f70e1dd3ff62368054ce3cf6833e988c3
Author: crafcat7 <chenr...@xiaomi.com>
AuthorDate: Wed Feb 22 13:57:00 2023 +0800

    drivertest/gpio:Add FAR to the pointer
---
 testing/drivertest/drivertest_gpio.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testing/drivertest/drivertest_gpio.c 
b/testing/drivertest/drivertest_gpio.c
index c162043da..25291b2e9 100644
--- a/testing/drivertest/drivertest_gpio.c
+++ b/testing/drivertest/drivertest_gpio.c
@@ -45,8 +45,8 @@
 
 struct pre_build_s
 {
-  char *gpio_a;
-  char *gpio_b;
+  FAR char *gpio_a;
+  FAR char *gpio_b;
 };
 
 /****************************************************************************
@@ -121,7 +121,7 @@ static int setup(FAR void **state)
 {
   FAR struct pre_build_s *pre_build;
   time_t t;
-  pre_build = (struct pre_build_s *)*state;
+  pre_build = (FAR struct pre_build_s *)*state;
 
   /* Seed the random number generated */
 
@@ -144,7 +144,7 @@ static void gpiotest01(FAR void **state)
   int ret;
   int i;
 
-  pre_build = (struct pre_build_s *)*state;
+  pre_build = (FAR struct pre_build_s *)*state;
 
   fd_a = open(pre_build->gpio_a, O_RDWR);
   assert_false(fd_a < 0);

Reply via email to