tidy: address some clang-tidy lints
This commit is contained in:
parent
fe538a7a2f
commit
38cadc6427
2 changed files with 4 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
cli_arguments cli_parse_arguments(const char *const argv[], const int argc) {
|
||||
cli_arguments cli_parse_arguments(const char* const argv[], const int argc) {
|
||||
errno = 0;
|
||||
cli_arguments args = {
|
||||
.is_debug_mode = false,
|
||||
|
|
@ -13,7 +13,7 @@ cli_arguments cli_parse_arguments(const char *const argv[], const int argc) {
|
|||
|
||||
int opt = -1;
|
||||
opterr = 0; // Suppress getopt's built-in invalid opt message
|
||||
while ((opt = getopt(argc, (char *const *)argv, "dh")) != -1) {
|
||||
while ((opt = getopt(argc, (char* const*)argv, "dh")) != -1) {
|
||||
switch (opt) {
|
||||
case 'd':
|
||||
args.is_debug_mode = true;
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ int signal_handler_process(signal_handler *const handler, timer *const timer) {
|
|||
// fall through
|
||||
case SIGINT:
|
||||
return 1;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
for (unsigned short i = 0; i < handler->block_count; ++i) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue