From 9265cd4f1b9042e0fb1d5293f4cbe5c25e81f7e5 Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Sun, 13 Nov 2022 11:35:10 +0000 Subject: Remove wildcard option This isn't doing anything and I forgot the original reason for adding it. Signed-off-by: Rory Bradford --- rf.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rf.c b/rf.c index 3066720..c3a56ad 100644 --- a/rf.c +++ b/rf.c @@ -187,7 +187,6 @@ int main(int argc, char **argv) { const char *root = "."; char cwd[MAXPATHLEN]; int unmatched_error = 0; - char wildcard = 0; if (getcwd(cwd, MAXPATHLEN) == NULL) { perror("getcwd"); @@ -255,14 +254,6 @@ int main(int argc, char **argv) { while (optind < argc) { patterns[i++] = argv[optind++]; - - if (wildcard) { - for (size_t j = 0; j < strlen(patterns[i - 1]); j++) { - if (patterns[i - 1][j] == wildcard) { - patterns[i - 1][j] = '*'; - } - } - } } if (recurse_find(patterns, &pattern_count, root, &switches)) { -- cgit 1.4.1-2-gfad0