summaryrefslogtreecommitdiff
path: root/test-wildmatch.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-10-15 13:25:58 +0700
committerJunio C Hamano <gitster@pobox.com>2012-10-15 14:58:18 -0700
commit9b4edc0a49abd4b5c6505c63c8fa40d527df6ae8 (patch)
treeb802eaecbd4e85aaddffa27435ba292f7c4a904c /test-wildmatch.c
parent3ae5396cf719000039c5d0d35f9bf934f647b030 (diff)
downloadgit-9b4edc0a49abd4b5c6505c63c8fa40d527df6ae8.tar.gz
wildmatch: remove static variable force_lower_case
One place less to worry about thread safety. Also combine wildmatch and iwildmatch into one. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-wildmatch.c')
-rw-r--r--test-wildmatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-wildmatch.c b/test-wildmatch.c
index 77014e99dc..74c08644ee 100644
--- a/test-wildmatch.c
+++ b/test-wildmatch.c
@@ -4,9 +4,9 @@
int main(int argc, char **argv)
{
if (!strcmp(argv[1], "wildmatch"))
- return !!wildmatch(argv[3], argv[2]);
+ return !!wildmatch(argv[3], argv[2], 0);
else if (!strcmp(argv[1], "iwildmatch"))
- return !!iwildmatch(argv[3], argv[2]);
+ return !!wildmatch(argv[3], argv[2], FNM_CASEFOLD);
else if (!strcmp(argv[1], "fnmatch"))
return !!fnmatch(argv[3], argv[2], FNM_PATHNAME);
else