mirror of https://github.com/Icinga/icinga2.git
mmatch: Update parameter names to match the header file.
This commit is contained in:
parent
7753e229cc
commit
bb1b5e232b
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue