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:
parent
d69475406b
commit
42505df405
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user