diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 12:39:35 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 12:39:35 (GMT) |
commit | 6d4e76680c96d21b00d565fa0128e6956d0be8a3 (patch) | |
tree | 36a54c6fdfef41fe3c4cdebb16f2eed7a7f80f30 | |
parent | bf53f05ebfa10641a70e85a998928aad8ce8c4b7 (diff) | |
download | monitoring-plugins-6d4e76680c96d21b00d565fa0128e6956d0be8a3.tar.gz |
check_ping: do not export local symbols
-rw-r--r-- | plugins/check_ping.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 3fff341..6dfb6b6 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
@@ -47,29 +47,29 @@ enum { | |||
47 | DEFAULT_MAX_PACKETS = 5 /* default no. of ICMP ECHO packets */ | 47 | DEFAULT_MAX_PACKETS = 5 /* default no. of ICMP ECHO packets */ |
48 | }; | 48 | }; |
49 | 49 | ||
50 | int process_arguments(int, char **); | 50 | static int process_arguments(int, char **); |
51 | int get_threshold(char *, float *, int *); | 51 | static int get_threshold(char *, float *, int *); |
52 | int validate_arguments(void); | 52 | static int validate_arguments(void); |
53 | int run_ping(const char *cmd, const char *addr); | 53 | static int run_ping(const char *cmd, const char *addr); |
54 | int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr); | 54 | static int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr); |
55 | static void print_help(void); | ||
55 | void print_usage(void); | 56 | void print_usage(void); |
56 | void print_help(void); | 57 | |
57 | 58 | static bool display_html = false; | |
58 | bool display_html = false; | 59 | static int wpl = UNKNOWN_PACKET_LOSS; |
59 | int wpl = UNKNOWN_PACKET_LOSS; | 60 | static int cpl = UNKNOWN_PACKET_LOSS; |
60 | int cpl = UNKNOWN_PACKET_LOSS; | 61 | static float wrta = UNKNOWN_TRIP_TIME; |
61 | float wrta = UNKNOWN_TRIP_TIME; | 62 | static float crta = UNKNOWN_TRIP_TIME; |
62 | float crta = UNKNOWN_TRIP_TIME; | 63 | static char **addresses = NULL; |
63 | char **addresses = NULL; | 64 | static int n_addresses = 0; |
64 | int n_addresses = 0; | 65 | static int max_addr = 1; |
65 | int max_addr = 1; | 66 | static int max_packets = -1; |
66 | int max_packets = -1; | 67 | static int verbose = 0; |
67 | int verbose = 0; | 68 | |
68 | 69 | static float rta = UNKNOWN_TRIP_TIME; | |
69 | float rta = UNKNOWN_TRIP_TIME; | 70 | static int pl = UNKNOWN_PACKET_LOSS; |
70 | int pl = UNKNOWN_PACKET_LOSS; | 71 | |
71 | 72 | static char *warn_text; | |
72 | char *warn_text; | ||
73 | 73 | ||
74 | int main(int argc, char **argv) { | 74 | int main(int argc, char **argv) { |
75 | char *cmd = NULL; | 75 | char *cmd = NULL; |