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 <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2024-09-14 21:28:41 +08:00 committed by Xiang Xiao
parent b5f8520d36
commit 140647cf8c
8 changed files with 16 additions and 9 deletions

View File

@ -35,7 +35,7 @@ int main(int argc, char **envp)
for (i = 0; i < 100; i++) for (i = 0; i < 100; i++)
{ {
for (ch = 0x20; ch < 0x7F; ch++) for (ch = 0x20; ch < 0x7f; ch++)
{ {
putchar(ch); putchar(ch);
} }

View File

@ -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 * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with

View File

@ -27,6 +27,10 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
/****************************************************************************
* Public Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: system_main * Name: system_main
****************************************************************************/ ****************************************************************************/

View File

@ -94,7 +94,6 @@ int ft80x_gpio_configure(int fd, uint8_t gpio, uint8_t dir, uint8_t drive,
/* Set the pin direction */ /* Set the pin direction */
ret = ft80x_getreg8(fd, FT80X_REG_GPIO_DIR, &regval8); ret = ft80x_getreg8(fd, FT80X_REG_GPIO_DIR, &regval8);
if (ret < 0) if (ret < 0)
{ {

View File

@ -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 * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with

View File

@ -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 * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* apps/functions/mbfuncdiag.c * apps/modbus/functions/mbfuncdiag.c
* *
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at> * Copyright (c) 2006 Christian Walter <wolti@sil.at>
@ -28,3 +28,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
****************************************************************************/ ****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/