summaryrefslogtreecommitdiffstats
path: root/t/helper/test-wildmatch.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2017-06-22 23:38:08 +0200
committerJunio C Hamano <gitster@pobox.com>2017-06-24 03:27:07 +0200
commit55d3426929d4d8c3dec402cabe6fb1bf27d6abad (patch)
tree1b037524961e2fc22f891e0e2c2a5dde72f8c0df /t/helper/test-wildmatch.c
parentTenth batch for 2.14 (diff)
downloadgit-55d3426929d4d8c3dec402cabe6fb1bf27d6abad.tar.xz
git-55d3426929d4d8c3dec402cabe6fb1bf27d6abad.zip
wildmatch: remove unused wildopts parameter
Remove the unused wildopts placeholder struct from being passed to all wildmatch() invocations, or rather remove all the boilerplate NULL parameters. This parameter was added back in commit 9b3497cab9 ("wildmatch: rename constants and update prototype", 2013-01-01) as a placeholder for future use. Over 4 years later nothing has made use of it, let's just remove it. It can be added in the future if we find some reason to start using such a parameter. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-wildmatch.c')
-rw-r--r--t/helper/test-wildmatch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/helper/test-wildmatch.c b/t/helper/test-wildmatch.c
index 52be876fed..921d7b3e7e 100644
--- a/t/helper/test-wildmatch.c
+++ b/t/helper/test-wildmatch.c
@@ -11,11 +11,11 @@ int cmd_main(int argc, const char **argv)
argv[i] += 3;
}
if (!strcmp(argv[1], "wildmatch"))
- return !!wildmatch(argv[3], argv[2], WM_PATHNAME, NULL);
+ return !!wildmatch(argv[3], argv[2], WM_PATHNAME);
else if (!strcmp(argv[1], "iwildmatch"))
- return !!wildmatch(argv[3], argv[2], WM_PATHNAME | WM_CASEFOLD, NULL);
+ return !!wildmatch(argv[3], argv[2], WM_PATHNAME | WM_CASEFOLD);
else if (!strcmp(argv[1], "pathmatch"))
- return !!wildmatch(argv[3], argv[2], 0, NULL);
+ return !!wildmatch(argv[3], argv[2], 0);
else
return 1;
}