diff options
Diffstat (limited to 'rf.c')
-rw-r--r-- | rf.c | 9 |
1 files changed, 0 insertions, 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)) { |