static char *pattern;
/* Function prototypes. */
-static int pattern_match(const char *string, const char *pattern);
+static int pattern_match(const char *string, const char *pat);
static int DisplayAll(const char *restrict const path);
static void slashdot(char *restrict p, char old, char new)
return rc;
}
-int is_deprecated(char *filename)
+static int is_deprecated(char *filename)
{
int i;
for (i = 0; strlen(DEPRECATED[i]); i++) {
return rc;
}
-static int pattern_match(const char *string, const char *pattern)
+static int pattern_match(const char *string, const char *pat)
{
int status;
regex_t re;
- if (regcomp(&re, pattern, REG_EXTENDED | REG_NOSUB) != 0)
+ if (regcomp(&re, pat, REG_EXTENDED | REG_NOSUB) != 0)
return (0);
status = regexec(&re, string, (size_t) 0, NULL, 0);
regfree(&re);
*/
int main(int argc, char *argv[])
{
- bool SwitchesAllowed = true;
bool WriteMode = false;
bool DisplayAllOpt = false;
bool preloadfileOpt = false;
NameOnly = true;
break;
case 'w':
- SwitchesAllowed = false;
WriteMode = true;
break;
case 'f': /* the NetBSD way */