mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
mmatch: Update parameter names to match the header file.
This commit is contained in:
parent
7753e229cc
commit
bb1b5e232b
8
third-party/mmatch/mmatch.c
vendored
8
third-party/mmatch/mmatch.c
vendored
@ -164,9 +164,9 @@ int mmatch(const char *old_mask, const char *new_mask)
|
||||
|
||||
/****************** 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;
|
||||
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.
|
||||
*/
|
||||
|
||||
char *collapse(char *mask)
|
||||
char *collapse(char *pattern)
|
||||
{
|
||||
int star = 0;
|
||||
char *m = mask;
|
||||
char *m = pattern;
|
||||
char *b;
|
||||
|
||||
if (m)
|
||||
|
2
third-party/mmatch/mmatch.h
vendored
2
third-party/mmatch/mmatch.h
vendored
@ -6,7 +6,7 @@ extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user