summaryrefslogtreecommitdiff
path: root/lib/exclude.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-19 08:09:20 +0000
committerJim Meyering <jim@meyering.net>2003-03-19 08:09:20 +0000
commitc8dd553971656ada833d1d9df76da553c685458c (patch)
tree1d62ceb01558eb52abf7618b3d1cf1ead0fcaef9 /lib/exclude.c
parente5f3393f3a44ab0b7d171fe3d7fb9507f97549e4 (diff)
downloadcoreutils-c8dd553971656ada833d1d9df76da553c685458c.tar.xz
revert last change
Diffstat (limited to 'lib/exclude.c')
-rw-r--r--lib/exclude.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/exclude.c b/lib/exclude.c
index 565e2458d..9337e74a9 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -1,6 +1,6 @@
/* exclude.c -- exclude file names
- Copyright (C) 1992, 1993, 1994, 1997, 1999, 2000, 2001, 2002, 2003 Free
+ Copyright (C) 1992, 1993, 1994, 1997, 1999, 2000, 2001, 2002 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -173,11 +173,9 @@ excluded_filename (struct exclude const *ex, char const *f)
int options = exclude[i].options;
if (excluded == !! (options & EXCLUDE_INCLUDE))
{
- typedef int (*fnmatch_t)
- PARAMS ((char const *, char const *, int));
- fnmatch_t matcher =
+ int (*matcher) PARAMS ((char const *, char const *, int)) =
(options & EXCLUDE_WILDCARDS
- ? (fnmatch_t) fnmatch
+ ? fnmatch
: fnmatch_no_wildcards);
bool matched = ((*matcher) (pattern, f, options) == 0);
char const *p;