Fix the nxstyle warning

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-01-16 17:47:34 +08:00 committed by Petro Karashchenko
parent 9480c0ec12
commit c7e96dbe32
5 changed files with 16 additions and 12 deletions

View File

@ -92,8 +92,8 @@
# define CONFIG_EXAMPLES_NXTERM_BPP 8
# elif !defined(CONFIG_NX_DISABLE_16BPP)
# define CONFIG_EXAMPLES_NXTERM_BPP 16
//#elif !defined(CONFIG_NX_DISABLE_24BPP)
//# define CONFIG_NXTERM_BPP 24
# elif !defined(CONFIG_NX_DISABLE_24BPP)
# define CONFIG_EXAMPLES_NXTERM_BPP 24
# elif !defined(CONFIG_NX_DISABLE_32BPP)
# define CONFIG_EXAMPLES_NXTERM_BPP 32
# else
@ -235,6 +235,7 @@ struct nxterm_state_s
/****************************************************************************
* Public Data
****************************************************************************/
/* All example global variables are retained in a structure to minimize
* the chance of name collisions.
*/

View File

@ -69,8 +69,8 @@
# define CONFIG_EXAMPLES_NXTEXT_BPP 8
# elif !defined(CONFIG_NX_DISABLE_16BPP)
# define CONFIG_EXAMPLES_NXTEXT_BPP 16
//#elif !defined(CONFIG_NX_DISABLE_24BPP)
//# define CONFIG_NXTERM_BPP 24
# elif !defined(CONFIG_NX_DISABLE_24BPP)
# define CONFIG_EXAMPLES_NXTEXT_BPP 24
# elif !defined(CONFIG_NX_DISABLE_32BPP)
# define CONFIG_EXAMPLES_NXTEXT_BPP 32
# else

View File

@ -183,7 +183,8 @@ bool usrsocktest_assert_print_buf(FAR const char *func,
FAR const void *expect_buf,
size_t buflen);
int usrsocktest_daemon_start(FAR const struct usrsocktest_daemon_conf_s *conf);
int usrsocktest_daemon_start(
FAR const struct usrsocktest_daemon_conf_s *conf);
int usrsocktest_daemon_stop(void);

View File

@ -7,8 +7,8 @@
*
* Derived from the file of the same name in the original THTTPD package:
*
* Copyright (C) 1995,1998,1999,2000,2001 by Jef Poskanzer <jef@mail.acme.com>.
* All rights reserved.
* Copyright (C) 1995,1998,1999,2000,2001 by Jef Poskanzer
* <jef@mail.acme.com>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -109,7 +109,9 @@ extern const char html_endhdr2[];
* Public Function Prototypes
****************************************************************************/
/* Copies and decodes a string. It's ok for from and to to be the same string. */
/* Copies and decodes a string.
* It's ok for from and to to be the same string.
*/
void httpd_strdecode(char *to, char *from);

View File

@ -60,8 +60,8 @@
* Public Types
****************************************************************************/
typedef void (*i8sak_eventcallback_t) (FAR struct ieee802154_primitive_s *primitive,
FAR void *arg);
typedef void (*i8sak_eventcallback_t)(FAR struct ieee802154_primitive_s *
primitive, FAR void *arg);
struct i8sak_eventfilter_s
{
@ -148,8 +148,8 @@ int i8sak_eventlistener_stop(FAR struct i8sak_s *i8sak);
* Name: i8sak_eventlistener_addreceiver
*
* Description:
* Add an event receiver. An event receiver consists of a callback and flags
* for which events should be sent to the callback.
* Add an event receiver. An event receiver consists of a callback and
* flags for which events should be sent to the callback.
*
* Parameters:
* handle - handle to the i8sak instance struct