You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/03/18 17:11:58 UTC

[incubator-nuttx-apps] 02/02: examples/slcd/slcd_main.c: Fix nxstyle issues.

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

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

commit 80428f56e2cb82090625550bbfd3876e277e7c95
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Wed Mar 18 11:03:30 2020 -0600

    examples/slcd/slcd_main.c: Fix nxstyle issues.
---
 examples/slcd/slcd_main.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/examples/slcd/slcd_main.c b/examples/slcd/slcd_main.c
index ff1153a..4d2c778 100644
--- a/examples/slcd/slcd_main.c
+++ b/examples/slcd/slcd_main.c
@@ -61,6 +61,7 @@
 /****************************************************************************
  * Private Typs
  ****************************************************************************/
+
 /* All state information for this test is kept within the following structure
  * in order create a namespace and to minimize the possibility of name
  * collisions.
@@ -101,7 +102,8 @@ static const char g_slcdhello[] = "Hello";
  *
  ****************************************************************************/
 
-void slcd_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer, unsigned int buflen)
+void slcd_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
+                     unsigned int buflen)
 {
   int i;
   int j;
@@ -154,7 +156,7 @@ void slcd_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer, unsigned in
         }
 
       printf("\n");
-   }
+    }
 }
 
 /****************************************************************************
@@ -359,8 +361,9 @@ int main(int argc, FAR char *argv[])
   return 0;
 
 errout_with_fd:
-   close(priv->fd);
+  close(priv->fd);
+
 errout:
-   priv->initialized = false;
-   exit(EXIT_FAILURE);
+  priv->initialized = false;
+  exit(EXIT_FAILURE);
 }