From 42505df405048f6a8b34608a1a1b697cd162bc2c Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 12 Oct 2024 11:16:17 +0300 Subject: [PATCH] main.c: make `args_match` a static function --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 2fd1786..a24b854 100644 --- a/src/main.c +++ b/src/main.c @@ -71,7 +71,7 @@ static char* correct_slashes(const char* path); #endif static char* my_basename(const char* raw_path); static void parse_value(uint8_t destination, const char* arg); -bool args_match(const char* arg, const char* args_list[]); +static bool args_match(const char* arg, const char* args_list[]); /* function implementations */ #ifdef SYS_NT @@ -175,7 +175,7 @@ static void parse_value(uint8_t destination, const char* arg) { } } -bool args_match(const char* arg, const char* args_list[]) { +static bool args_match(const char* arg, const char* args_list[]) { for (const char** p = args_list; *p != NULL; ++p) if (!strcmp(arg, *p)) return true;