mmatch: Update parameter names to match the header file.

This commit is contained in:
Gunnar Beutner 2012-06-16 04:03:35 +02:00
parent 7753e229cc
commit bb1b5e232b
2 changed files with 5 additions and 5 deletions

View File

@ -164,9 +164,9 @@ int mmatch(const char *old_mask, const char *new_mask)
/****************** Nemesi's match() ***************/ /****************** Nemesi's match() ***************/
int match(const char *mask, const char *string) int match(const char *mask, const char *str)
{ {
const char *m = mask, *s = string; const char *m = mask, *s = str;
char ch; char ch;
const char *bm, *bs; /* Will be reg anyway on a decent CPU/compiler */ const char *bm, *bs; /* Will be reg anyway on a decent CPU/compiler */
@ -261,10 +261,10 @@ break_while:
* Note that this new optimized alghoritm can *only* work in place. * Note that this new optimized alghoritm can *only* work in place.
*/ */
char *collapse(char *mask) char *collapse(char *pattern)
{ {
int star = 0; int star = 0;
char *m = mask; char *m = pattern;
char *b; char *b;
if (m) if (m)

View File

@ -6,7 +6,7 @@ extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
int mmatch(const char *old_mask, const char *new_mask); int mmatch(const char *old_mask, const char *new_mask);
int match(const char *ma, const char *na); int match(const char *mask, const char *str);
char *collapse(char *pattern); char *collapse(char *pattern);
#ifdef __cplusplus #ifdef __cplusplus