From f3ed9c6038eb960efcdaff7f58cae7934dd20a3e Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 03:38:44 +0100 Subject: check_fping: do not export local symbols --- plugins/check_fping.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'plugins') 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 { RTA = 1 }; -int textscan(char *buf); -int process_arguments(int, char **); -int get_threshold(char *arg, char *rv[2]); -void print_help(void); +static int textscan(char *buf); +static int process_arguments(int, char **); +static int get_threshold(char *arg, char *rv[2]); +static void print_help(void); void print_usage(void); -char *server_name = NULL; -char *sourceip = NULL; -char *sourceif = NULL; -int packet_size = PACKET_SIZE; -int packet_count = PACKET_COUNT; -int target_timeout = 0; -int packet_interval = 0; -bool verbose = false; -int cpl; -int wpl; -double crta; -double wrta; -bool cpl_p = false; -bool wpl_p = false; -bool alive_p = false; -bool crta_p = false; -bool wrta_p = false; +static char *server_name = NULL; +static char *sourceip = NULL; +static char *sourceif = NULL; +static int packet_size = PACKET_SIZE; +static int packet_count = PACKET_COUNT; +static int target_timeout = 0; +static int packet_interval = 0; +static bool verbose = false; +static int cpl; +static int wpl; +static double crta; +static double wrta; +static bool cpl_p = false; +static bool wpl_p = false; +static bool alive_p = false; +static bool crta_p = false; +static bool wrta_p = false; int main(int argc, char **argv) { /* normally should be int result = STATE_UNKNOWN; */ -- cgit v1.2.3-74-g34f1