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 2909e8d7a Add function missing FAR information
2909e8d7a is described below

commit 2909e8d7a07b94c8599d25de3dbdd47ef75c9478
Author: fengxuesong <[email protected]>
AuthorDate: Wed Aug 9 10:55:06 2023 +0800

    Add function missing FAR information
    
    Signed-off-by: fengxuesong <[email protected]>
---
 system/i2c/i2c_hexdump.c | 8 ++++----
 system/i2c/i2c_main.c    | 5 +++--
 system/i2c/i2c_reset.c   | 2 +-
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/system/i2c/i2c_hexdump.c b/system/i2c/i2c_hexdump.c
index 5d48ba783..da843ee65 100644
--- a/system/i2c/i2c_hexdump.c
+++ b/system/i2c/i2c_hexdump.c
@@ -36,10 +36,10 @@
  * Name: hexdump_line
  ****************************************************************************/
 
-static int hexdump_line(FILE *ostream, void *addr, int len)
+static int hexdump_line(FAR FILE *ostream, FAR void *addr, int len)
 {
   int i;
-  uint8_t *p;
+  FAR uint8_t *p;
 
   if (len <= 0)
     {
@@ -100,10 +100,10 @@ static int hexdump_line(FILE *ostream, void *addr, int 
len)
  * Public Functions
  ****************************************************************************/
 
-void i2ctool_hexdump(FILE *outstream, void *addr, int len)
+void i2ctool_hexdump(FAR FILE *outstream, FAR void *addr, int len)
 {
   int nbytes;
-  uint8_t *p = addr;
+  FAR uint8_t *p = addr;
 
   /* print one line at a time */
 
diff --git a/system/i2c/i2c_main.c b/system/i2c/i2c_main.c
index cfe0f3706..448c57d42 100644
--- a/system/i2c/i2c_main.c
+++ b/system/i2c/i2c_main.c
@@ -221,7 +221,7 @@ static int i2c_execute(FAR struct i2ctool_s *i2ctool, int 
argc,
  ****************************************************************************/
 
 static FAR char *i2c_argument(FAR struct i2ctool_s *i2ctool,
-                              int argc, char *argv[], int *pindex)
+                              int argc, FAR char *argv[], FAR int *pindex)
 {
   FAR char *arg;
   int  index = *pindex;
@@ -266,7 +266,8 @@ static FAR char *i2c_argument(FAR struct i2ctool_s *i2ctool,
  * Name: i2c_parse
  ****************************************************************************/
 
-static int i2c_parse(FAR struct i2ctool_s *i2ctool, int argc, char *argv[])
+static int i2c_parse(FAR struct i2ctool_s *i2ctool,
+                     int argc, FAR char *argv[])
 {
   FAR char *newargs[MAX_ARGUMENTS + 2];
   FAR char *cmd;
diff --git a/system/i2c/i2c_reset.c b/system/i2c/i2c_reset.c
index 2809b06d2..550d5607a 100644
--- a/system/i2c/i2c_reset.c
+++ b/system/i2c/i2c_reset.c
@@ -38,7 +38,7 @@
  * Name: i2ccmd_reset
  ****************************************************************************/
 
-int i2ccmd_reset(FAR struct i2ctool_s *i2ctool, int argc, char **argv)
+int i2ccmd_reset(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
 {
   int ret;
   int fd;

Reply via email to