about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRory Bradford <roryrjb@gmail.com>2022-11-13 11:35:10 +0000
committerRory Bradford <roryrjb@gmail.com>2022-11-13 11:37:14 +0000
commit9265cd4f1b9042e0fb1d5293f4cbe5c25e81f7e5 (patch)
tree3cdab7ce7bb39c2f7bdbb5e34b074d7249e3025e
parent847226b3698755d4f4869f38a1f6658d090ce897 (diff)
downloadrf-9265cd4f1b9042e0fb1d5293f4cbe5c25e81f7e5.tar.gz
Remove wildcard option
This isn't doing anything and I forgot the original reason for adding it.

Signed-off-by: Rory Bradford <roryrjb@gmail.com>
-rw-r--r--rf.c9
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)) {