From 6d4e76680c96d21b00d565fa0128e6956d0be8a3 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:39:35 +0100 Subject: check_ping: do not export local symbols 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 { DEFAULT_MAX_PACKETS = 5 /* default no. of ICMP ECHO packets */ }; -int process_arguments(int, char **); -int get_threshold(char *, float *, int *); -int validate_arguments(void); -int run_ping(const char *cmd, const char *addr); -int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr); +static int process_arguments(int, char **); +static int get_threshold(char *, float *, int *); +static int validate_arguments(void); +static int run_ping(const char *cmd, const char *addr); +static int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr); +static void print_help(void); void print_usage(void); -void print_help(void); - -bool display_html = false; -int wpl = UNKNOWN_PACKET_LOSS; -int cpl = UNKNOWN_PACKET_LOSS; -float wrta = UNKNOWN_TRIP_TIME; -float crta = UNKNOWN_TRIP_TIME; -char **addresses = NULL; -int n_addresses = 0; -int max_addr = 1; -int max_packets = -1; -int verbose = 0; - -float rta = UNKNOWN_TRIP_TIME; -int pl = UNKNOWN_PACKET_LOSS; - -char *warn_text; + +static bool display_html = false; +static int wpl = UNKNOWN_PACKET_LOSS; +static int cpl = UNKNOWN_PACKET_LOSS; +static float wrta = UNKNOWN_TRIP_TIME; +static float crta = UNKNOWN_TRIP_TIME; +static char **addresses = NULL; +static int n_addresses = 0; +static int max_addr = 1; +static int max_packets = -1; +static int verbose = 0; + +static float rta = UNKNOWN_TRIP_TIME; +static int pl = UNKNOWN_PACKET_LOSS; + +static char *warn_text; int main(int argc, char **argv) { char *cmd = NULL; -- cgit v0.10-9-g596f