diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-12 17:42:10 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-12 17:42:10 +0200 |
commit | 662997251d4fc43f4155784f9e7df827f193305e (patch) | |
tree | 0a9ad5c5607598da0eb6b6d71fa8c47ca44186fb /lib/utils_tcp.h | |
parent | ca9ce71576ddf78cc54fe3b6f0428cdfea72e9df (diff) | |
download | monitoring-plugins-662997251d4fc43f4155784f9e7df827f193305e.tar.gz |
Improve interface of np_expect_match() function
Replace the three boolean parameters of lib/utils_tcp.c's
np_expect_match() function with a single "flags" parameter.
Diffstat (limited to 'lib/utils_tcp.h')
-rw-r--r-- | lib/utils_tcp.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/utils_tcp.h b/lib/utils_tcp.h index b0eb8bee..34b771d6 100644 --- a/lib/utils_tcp.h +++ b/lib/utils_tcp.h | |||
@@ -1,4 +1,8 @@ | |||
1 | /* Header file for utils_tcp */ | 1 | /* Header file for utils_tcp */ |
2 | 2 | ||
3 | #define NP_MATCH_ALL 0x1 | ||
4 | #define NP_MATCH_EXACT 0x2 | ||
5 | #define NP_MATCH_VERBOSE 0x4 | ||
6 | |||
3 | int np_expect_match(char* status, char** server_expect, int server_expect_count, | 7 | int np_expect_match(char* status, char** server_expect, int server_expect_count, |
4 | int all, int exact_match, int verbose); | 8 | int flags); |