1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-12-27 07:30:23 +05:30

main.c: make args_match a static function

This commit is contained in:
Intel A80486DX2-66 2024-10-12 11:16:17 +03:00
parent d69475406b
commit 42505df405
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -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;