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 140647cf8 Minor code style fixes
140647cf8 is described below

commit 140647cf8ca7ccff8c2e02814f81c7e70ab979c2
Author: Huang Qi <huang...@xiaomi.com>
AuthorDate: Sat Sep 14 21:28:41 2024 +0800

    Minor code style fixes
    
    Fix issue in these files:
    examples/flowc/flowc_mktestdata.c
    examples/nxhello/nxhello_listener.c
    examples/system/system_main.c
    fsutils/passwd/passwd_append.c
    graphics/ft80x/ft80x_gpio.c
    graphics/pdcurs34/pdcurses/pdc_keyname.c
    graphics/pdcurs34/pdcurses/pdc_touch.c
    modbus/functions/mbfuncdiag.c
    
    Fixed by AI and checked by manual
    
    Signed-off-by: Huang Qi <huang...@xiaomi.com>
---
 examples/flowc/flowc_mktestdata.c        | 2 +-
 examples/nxhello/nxhello_listener.c      | 4 ++--
 examples/system/system_main.c            | 4 ++++
 fsutils/passwd/passwd_append.c           | 4 ++--
 graphics/ft80x/ft80x_gpio.c              | 1 -
 graphics/pdcurs34/pdcurses/pdc_keyname.c | 2 +-
 graphics/pdcurs34/pdcurses/pdc_touch.c   | 2 +-
 modbus/functions/mbfuncdiag.c            | 6 +++++-
 8 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/examples/flowc/flowc_mktestdata.c 
b/examples/flowc/flowc_mktestdata.c
index ae31cf851..900c0d700 100644
--- a/examples/flowc/flowc_mktestdata.c
+++ b/examples/flowc/flowc_mktestdata.c
@@ -35,7 +35,7 @@ int main(int argc, char **envp)
 
   for (i = 0; i < 100; i++)
     {
-      for (ch = 0x20; ch < 0x7F; ch++)
+      for (ch = 0x20; ch < 0x7f; ch++)
         {
           putchar(ch);
         }
diff --git a/examples/nxhello/nxhello_listener.c 
b/examples/nxhello/nxhello_listener.c
index 06273af84..737936523 100644
--- a/examples/nxhello/nxhello_listener.c
+++ b/examples/nxhello/nxhello_listener.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * apps/examples/nxterm/nxhello_listener.c
+ * apps/examples/nxhello/nxhello_listener.c
  *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -46,7 +46,7 @@ FAR void *nxhello_listener(FAR void *arg)
 
   /* Process events forever */
 
-  for (;;)
+  for (; ; )
     {
       /* Handle the next event.  If we were configured blocking, then
        * we will stay right here until the next event is received.  Since
diff --git a/examples/system/system_main.c b/examples/system/system_main.c
index 7b48e5bc8..0783dda8c 100644
--- a/examples/system/system_main.c
+++ b/examples/system/system_main.c
@@ -27,6 +27,10 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+/****************************************************************************
+ * Public Functions
+ ****************************************************************************/
+
 /****************************************************************************
  * Name: system_main
  ****************************************************************************/
diff --git a/fsutils/passwd/passwd_append.c b/fsutils/passwd/passwd_append.c
index 32f7a0381..ed8f87a26 100644
--- a/fsutils/passwd/passwd_append.c
+++ b/fsutils/passwd/passwd_append.c
@@ -64,11 +64,11 @@ int passwd_append(FAR const char *username, FAR const char 
*password)
 
   stream = fopen(CONFIG_FSUTILS_PASSWD_PATH, "a");
   if (stream == NULL)
-   {
+    {
       int errcode = errno;
       DEBUGASSERT(errcode > 0);
       return errcode;
-   }
+    }
 
   /* The format of the password file is:
    *
diff --git a/graphics/ft80x/ft80x_gpio.c b/graphics/ft80x/ft80x_gpio.c
index ca5cfd099..b04072222 100644
--- a/graphics/ft80x/ft80x_gpio.c
+++ b/graphics/ft80x/ft80x_gpio.c
@@ -94,7 +94,6 @@ int ft80x_gpio_configure(int fd, uint8_t gpio, uint8_t dir, 
uint8_t drive,
 
   /* Set the pin direction */
 
-
   ret = ft80x_getreg8(fd, FT80X_REG_GPIO_DIR, &regval8);
   if (ret < 0)
     {
diff --git a/graphics/pdcurs34/pdcurses/pdc_keyname.c 
b/graphics/pdcurs34/pdcurses/pdc_keyname.c
index 15d6d046f..c5a492173 100644
--- a/graphics/pdcurs34/pdcurses/pdc_keyname.c
+++ b/graphics/pdcurs34/pdcurses/pdc_keyname.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * apps/graphics/pdcurses/pdc_keyname.c
+ * apps/graphics/pdcurs34/pdcurses/pdc_keyname.c
  *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
diff --git a/graphics/pdcurs34/pdcurses/pdc_touch.c 
b/graphics/pdcurs34/pdcurses/pdc_touch.c
index 3c4a2c7c5..5eda71905 100644
--- a/graphics/pdcurs34/pdcurses/pdc_touch.c
+++ b/graphics/pdcurs34/pdcurses/pdc_touch.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * apps/graphics/pdcurses/pdc_touch.c
+ * apps/graphics/pdcurs34/pdcurses/pdc_touch.c
  *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
diff --git a/modbus/functions/mbfuncdiag.c b/modbus/functions/mbfuncdiag.c
index ded0ca488..a6ee8fa68 100644
--- a/modbus/functions/mbfuncdiag.c
+++ b/modbus/functions/mbfuncdiag.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * apps/functions/mbfuncdiag.c
+ * apps/modbus/functions/mbfuncdiag.c
  *
  * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
  * Copyright (c) 2006 Christian Walter <wo...@sil.at>
@@ -28,3 +28,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  ****************************************************************************/
+
+/****************************************************************************
+ * Public Functions
+ ****************************************************************************/

Reply via email to