diff --git a/audioutils/mml_parser/mml_parser.c b/audioutils/mml_parser/mml_parser.c index de7450f71..033bbbfde 100644 --- a/audioutils/mml_parser/mml_parser.c +++ b/audioutils/mml_parser/mml_parser.c @@ -169,15 +169,33 @@ static int calc_samples(int fs, int tempo, int num, int dots) switch (num) { - case 0: n = 3; break; - case 1: n = 2; break; - case 2: n = 1; break; - case 4: n = 0; break; - case 8: div = 1; break; - case 16: div = 2; break; - case 32: div = 3; break; - case 64: div = 4; break; - default: div = -1; break; + case 0: + n = 3; + break; + case 1: + n = 2; + break; + case 2: + n = 1; + break; + case 4: + n = 0; + break; + case 8: + div = 1; + break; + case 16: + div = 2; + break; + case 32: + div = 3; + break; + case 64: + div = 4; + break; + default: + div = -1; + break; } if (dots <= 4) diff --git a/examples/elf/tests/signal/signal.c b/examples/elf/tests/signal/signal.c index b091602bc..afcdff281 100644 --- a/examples/elf/tests/signal/signal.c +++ b/examples/elf/tests/signal/signal.c @@ -66,8 +66,8 @@ static int sigusr2_rcvd = 0; * Name: siguser_action ****************************************************************************/ -/* NOTE: it is necessary for functions that are referred to by function pointers - * pointer to be declared with global scope (at least for ARM). Otherwise, +/* NOTE: it is necessary for functions that are referred to by function + * pointers to be declared with global scope (at least for ARM). Otherwise, * a relocation type that is not supported by ELF is generated by GCC. */ @@ -225,7 +225,7 @@ int main(int argc, char **argv) /* Verify that the handler that was removed was siguser_action */ - if ((void*)act.sa_handler != (void*)siguser_action) + if ((void *)act.sa_handler != (void *)siguser_action) { fprintf(stderr, "Old SIGUSR2 signal handler (%p) is not siguser_action (%p)\n", diff --git a/examples/elf/tests/struct/struct_main.c b/examples/elf/tests/struct/struct_main.c index 801d2c5c5..5158c03b7 100644 --- a/examples/elf/tests/struct/struct_main.c +++ b/examples/elf/tests/struct/struct_main.c @@ -35,7 +35,7 @@ const struct struct_dummy_s dummy_struct = { - DUMMY_SCALAR_VALUE3 + DUMMY_SCALAR_VALUE3 }; int dummy_scalar = DUMMY_SCALAR_VALUE2; diff --git a/examples/mount/ramdisk.c b/examples/mount/ramdisk.c index 7eeeafaab..11b29130a 100644 --- a/examples/mount/ramdisk.c +++ b/examples/mount/ramdisk.c @@ -97,8 +97,8 @@ int create_ramdisk(void) ret = mkfatfs(g_source, &g_fmt); if (ret < 0) { - printf("create_ramdisk: Failed to create FAT filesystem on ramdisk at %s\n", - g_source); + printf("create_ramdisk: Failed to create FAT filesystem on " + "ramdisk at %s\n", g_source); return ret; } diff --git a/examples/netloop/netloop.h b/examples/netloop/netloop.h index c4d6415d6..2696e89ae 100644 --- a/examples/netloop/netloop.h +++ b/examples/netloop/netloop.h @@ -45,7 +45,6 @@ * buffering s not yet support for UDP) */ - #ifndef CONFIG_NET # error Network socket support not enabled #endif diff --git a/examples/nxflat/tests/signal/signal.c b/examples/nxflat/tests/signal/signal.c index 7deb7768e..63ee50767 100644 --- a/examples/nxflat/tests/signal/signal.c +++ b/examples/nxflat/tests/signal/signal.c @@ -66,8 +66,8 @@ static int sigusr2_rcvd = 0; * Name: siguser_action ****************************************************************************/ -/* NOTE: it is necessary for functions that are referred to by function pointers - * pointer to be declared with global scope (at least for ARM). Otherwise, +/* NOTE: it is necessary for functions that are referred to by function + * pointers to be declared with global scope (at least for ARM). Otherwise, * a relocation type that is not supported by ELF is generated by GCC. */ @@ -225,7 +225,7 @@ int main(int argc, char **argv) /* Verify that the handler that was removed was siguser_action */ - if ((void*)act.sa_handler != (void*)siguser_action) + if ((void *)act.sa_handler != (void *)siguser_action) { fprintf(stderr, "Old SIGUSR2 signal handler (%p) is not siguser_action (%p)\n", diff --git a/examples/nxflat/tests/struct/struct_main.c b/examples/nxflat/tests/struct/struct_main.c index 18aa49178..b3721f87a 100644 --- a/examples/nxflat/tests/struct/struct_main.c +++ b/examples/nxflat/tests/struct/struct_main.c @@ -35,7 +35,7 @@ const struct struct_dummy_s dummy_struct = { - DUMMY_SCALAR_VALUE3 + DUMMY_SCALAR_VALUE3 }; int dummy_scalar = DUMMY_SCALAR_VALUE2; diff --git a/examples/uid/uid_main.c b/examples/uid/uid_main.c index cc4bfc6fd..9792114be 100644 --- a/examples/uid/uid_main.c +++ b/examples/uid/uid_main.c @@ -51,10 +51,14 @@ static void show_usage(FAR const char *progname, FAR FILE *stream, int exit_code) { fprintf(stream, "USAGE:\n"); - fprintf(stream, "\t%s -uid - Show user info by ID\n", progname); - fprintf(stream, "\t%s -uname - Show user info by name\n", progname); - fprintf(stream, "\t%s -gid - Show group info by ID\n", progname); - fprintf(stream, "\t%s -gname - Show group info by name\n", progname); + fprintf(stream, "\t%s -uid - Show user info by ID\n", + progname); + fprintf(stream, "\t%s -uname - Show user info by name\n", + progname); + fprintf(stream, "\t%s -gid - Show group info by ID\n", + progname); + fprintf(stream, "\t%s -gname - Show group info by name\n", + progname); fprintf(stream, "\t%s -h - Show this help info\n", progname); exit(exit_code); } diff --git a/include/canutils/obd.h b/include/canutils/obd.h index bc6667285..c49b2a152 100644 --- a/include/canutils/obd.h +++ b/include/canutils/obd.h @@ -96,13 +96,13 @@ int obd_send_request(FAR struct obd_dev_s *dev, uint8_t opmode, uint8_t pid); * Wait for a message from ECUs with requested PID that was sent using * obd_send_request(). * - * It will return an error case it doesn't receive the msg after the elapsed - * "timeout" time. + * It will return an error case it doesn't receive the msg after the + * elapsed "timeout" time. * ****************************************************************************/ -int obd_wait_response(FAR struct obd_dev_s *dev, uint8_t opmode, uint8_t pid, - int timeout); +int obd_wait_response(FAR struct obd_dev_s *dev, uint8_t opmode, + uint8_t pid, int timeout); /**************************************************************************** * Name: obd_decode_pid @@ -116,4 +116,4 @@ int obd_wait_response(FAR struct obd_dev_s *dev, uint8_t opmode, uint8_t pid, FAR char *obd_decode_pid(FAR struct obd_dev_s *dev, uint8_t pid); -#endif /*__APPS_INCLUDE_CANUTILS_OBD_H */ +#endif /* __APPS_INCLUDE_CANUTILS_OBD_H */ diff --git a/include/industry/abnt_codi.h b/include/industry/abnt_codi.h index 049a7b29f..e1dbeb494 100644 --- a/include/industry/abnt_codi.h +++ b/include/industry/abnt_codi.h @@ -104,7 +104,8 @@ uint8_t abnt_codi_checksum(FAR const uint8_t *data); /* Parse a specific ABNT CODI sequence. */ -bool abnt_codi_parse(FAR const uint8_t *data, FAR struct abnt_codi_proto_s *proto); +bool abnt_codi_parse(FAR const uint8_t *data, + FAR struct abnt_codi_proto_s *proto); #ifdef __cplusplus } diff --git a/netutils/netlib/netlib_ipv4addrconv.c b/netutils/netlib/netlib_ipv4addrconv.c index 27325ca0a..e27a21f76 100644 --- a/netutils/netlib/netlib_ipv4addrconv.c +++ b/netutils/netlib/netlib_ipv4addrconv.c @@ -68,9 +68,9 @@ bool netlib_ipv4addrconv(FAR const char *addrstr, FAR uint8_t *ipaddr) { ch = *addrstr++; if (++j > 4) - { - return false; - } + { + return false; + } if (ch == '.' || ch == 0) { diff --git a/netutils/pppd/ahdlc.h b/netutils/pppd/ahdlc.h index 8ed51ff5d..a3846f76a 100644 --- a/netutils/pppd/ahdlc.h +++ b/netutils/pppd/ahdlc.h @@ -68,8 +68,8 @@ void ahdlc_rx_ready(FAR struct ppp_context_s *ctx); uint8_t ahdlc_rx(FAR struct ppp_context_s *ctx, uint8_t); uint8_t ahdlc_tx(FAR struct ppp_context_s *ctx, uint16_t protocol, - FAR uint8_t *header, FAR uint8_t *buffer, uint16_t headerlen, - uint16_t datalen); + FAR uint8_t *header, FAR uint8_t *buffer, + uint16_t headerlen, uint16_t datalen); #undef EXTERN #ifdef __cplusplus diff --git a/netutils/pppd/pap.h b/netutils/pppd/pap.h index 402ef0f71..fa43c9827 100644 --- a/netutils/pppd/pap.h +++ b/netutils/pppd/pap.h @@ -56,6 +56,7 @@ ****************************************************************************/ /* PAP state machine flags */ + /* Client only */ #define PAP_TX_UP 0x01 diff --git a/netutils/webserver/httpd.h b/netutils/webserver/httpd.h index 253adfcf1..e6486bb34 100644 --- a/netutils/webserver/httpd.h +++ b/netutils/webserver/httpd.h @@ -54,7 +54,9 @@ * Public Function Prototypes ****************************************************************************/ -/* 'file' must be allocated by caller and will be filled in by the function. */ +/* 'file' must be allocated by caller and will be filled in by the + * function. + */ #if defined(CONFIG_NETUTILS_HTTPD_SENDFILE) diff --git a/system/tee/tee.c b/system/tee/tee.c index 3adab918f..cb934c7a9 100644 --- a/system/tee/tee.c +++ b/system/tee/tee.c @@ -103,8 +103,9 @@ static void show_usage(FAR const char *progrname, int exitcode) fprintf(stderr, "-a:\n"); fprintf(stderr, "\tAppend to the file (vs. truncating)\n"); fprintf(stderr, "file:\n"); - fprintf(stderr, "\tArbitrary number of options output files. Output\n"); - fprintf(stderr, "\twill go to stdout in addition to each of these files.\n"); + fprintf(stderr, "\tArbitrary number of options output files. Output\n"); + fprintf(stderr, "\twill go to stdout in addition to each of these\n"); + fprintf(stderr, "\tfiles.\n"); fprintf(stderr, "-h:\n"); fprintf(stderr, "\tShows this message and exits\n"); exit(exitcode);