summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 03:38:44 +0100
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 03:38:44 +0100
commitf3ed9c6038eb960efcdaff7f58cae7934dd20a3e (patch)
tree6b82f669fee4111d44717f971d0adb056f9e984f /plugins
parent5490729f1ff8fd65ba408906cf1552331938424b (diff)
downloadmonitoring-plugins-f3ed9c6038eb960efcdaff7f58cae7934dd20a3e.tar.gz
check_fping: do not export local symbols
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_fping.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index b11508a5..79d672ce 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -46,29 +46,29 @@ enum {
46 RTA = 1 46 RTA = 1
47}; 47};
48 48
49int textscan(char *buf); 49static int textscan(char *buf);
50int process_arguments(int, char **); 50static int process_arguments(int, char **);
51int get_threshold(char *arg, char *rv[2]); 51static int get_threshold(char *arg, char *rv[2]);
52void print_help(void); 52static void print_help(void);
53void print_usage(void); 53void print_usage(void);
54 54
55char *server_name = NULL; 55static char *server_name = NULL;
56char *sourceip = NULL; 56static char *sourceip = NULL;
57char *sourceif = NULL; 57static char *sourceif = NULL;
58int packet_size = PACKET_SIZE; 58static int packet_size = PACKET_SIZE;
59int packet_count = PACKET_COUNT; 59static int packet_count = PACKET_COUNT;
60int target_timeout = 0; 60static int target_timeout = 0;
61int packet_interval = 0; 61static int packet_interval = 0;
62bool verbose = false; 62static bool verbose = false;
63int cpl; 63static int cpl;
64int wpl; 64static int wpl;
65double crta; 65static double crta;
66double wrta; 66static double wrta;
67bool cpl_p = false; 67static bool cpl_p = false;
68bool wpl_p = false; 68static bool wpl_p = false;
69bool alive_p = false; 69static bool alive_p = false;
70bool crta_p = false; 70static bool crta_p = false;
71bool wrta_p = false; 71static bool wrta_p = false;
72 72
73int main(int argc, char **argv) { 73int main(int argc, char **argv) {
74 /* normally should be int result = STATE_UNKNOWN; */ 74 /* normally should be int result = STATE_UNKNOWN; */