Skip to content

Commit 140647c

Browse files
no1wudixiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent b5f8520 commit 140647c

File tree

8 files changed

+16
-9
lines changed

8 files changed

+16
-9
lines changed

examples/flowc/flowc_mktestdata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main(int argc, char **envp)
3535

3636
for (i = 0; i < 100; i++)
3737
{
38-
for (ch = 0x20; ch < 0x7F; ch++)
38+
for (ch = 0x20; ch < 0x7f; ch++)
3939
{
4040
putchar(ch);
4141
}

examples/nxhello/nxhello_listener.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/examples/nxterm/nxhello_listener.c
2+
* apps/examples/nxhello/nxhello_listener.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with
@@ -46,7 +46,7 @@ FAR void *nxhello_listener(FAR void *arg)
4646

4747
/* Process events forever */
4848

49-
for (;;)
49+
for (; ; )
5050
{
5151
/* Handle the next event. If we were configured blocking, then
5252
* we will stay right here until the next event is received. Since

examples/system/system_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#include <stdio.h>
2828
#include <stdlib.h>
2929

30+
/****************************************************************************
31+
* Public Functions
32+
****************************************************************************/
33+
3034
/****************************************************************************
3135
* Name: system_main
3236
****************************************************************************/

fsutils/passwd/passwd_append.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ int passwd_append(FAR const char *username, FAR const char *password)
6464

6565
stream = fopen(CONFIG_FSUTILS_PASSWD_PATH, "a");
6666
if (stream == NULL)
67-
{
67+
{
6868
int errcode = errno;
6969
DEBUGASSERT(errcode > 0);
7070
return errcode;
71-
}
71+
}
7272

7373
/* The format of the password file is:
7474
*

graphics/ft80x/ft80x_gpio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ int ft80x_gpio_configure(int fd, uint8_t gpio, uint8_t dir, uint8_t drive,
9494

9595
/* Set the pin direction */
9696

97-
9897
ret = ft80x_getreg8(fd, FT80X_REG_GPIO_DIR, &regval8);
9998
if (ret < 0)
10099
{

graphics/pdcurs34/pdcurses/pdc_keyname.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/graphics/pdcurses/pdc_keyname.c
2+
* apps/graphics/pdcurs34/pdcurses/pdc_keyname.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with

graphics/pdcurs34/pdcurses/pdc_touch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/graphics/pdcurses/pdc_touch.c
2+
* apps/graphics/pdcurs34/pdcurses/pdc_touch.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with

modbus/functions/mbfuncdiag.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* apps/functions/mbfuncdiag.c
2+
* apps/modbus/functions/mbfuncdiag.c
33
*
44
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
55
* Copyright (c) 2006 Christian Walter <[email protected]>
@@ -28,3 +28,7 @@
2828
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*
3030
****************************************************************************/
31+
32+
/****************************************************************************
33+
* Public Functions
34+
****************************************************************************/

0 commit comments

Comments
 (0)