[PATCH 02/42] fnmatch:sparse fixes
Sascha Hauer
s.hauer at pengutronix.de
Tue Oct 19 08:54:50 EDT 2010
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
lib/fnmatch.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/lib/fnmatch.c b/lib/fnmatch.c
index 223b9d3..1a5e8d0 100644
--- a/lib/fnmatch.c
+++ b/lib/fnmatch.c
@@ -48,10 +48,7 @@ extern int errno;
/* Match STRING against the filename pattern PATTERN, returning zero if
it matches, nonzero if not. */
-int fnmatch(pattern, string, flags)
-const char *pattern;
-const char *string;
-int flags;
+int fnmatch(const char *pattern, const char *string, int flags)
{
register const char *p = pattern, *n = string;
register char c;
--
1.7.2.3
More information about the barebox
mailing list