From f9fd727323e67821360ceae3ad2c8e5bb9cb71e2 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:47:01 +0100 Subject: check_mysql_query: do not export local symbols --- plugins/check_mysql_query.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'plugins') diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c index 18057d61..52753461 100644 --- a/plugins/check_mysql_query.c +++ b/plugins/check_mysql_query.c @@ -41,23 +41,23 @@ const char *email = "devel@monitoring-plugins.org"; #include #include -char *db_user = NULL; -char *db_host = NULL; -char *db_socket = NULL; -char *db_pass = NULL; -char *db = NULL; -char *opt_file = NULL; -char *opt_group = NULL; -unsigned int db_port = MYSQL_PORT; - -int process_arguments(int, char **); -int validate_arguments(void); -void print_help(void); +static char *db_user = NULL; +static char *db_host = NULL; +static char *db_socket = NULL; +static char *db_pass = NULL; +static char *db = NULL; +static char *opt_file = NULL; +static char *opt_group = NULL; +static unsigned int db_port = MYSQL_PORT; + +static int process_arguments(int, char **); +static int validate_arguments(void); +static void print_help(void); void print_usage(void); -char *sql_query = NULL; -int verbose = 0; -thresholds *my_thresholds = NULL; +static char *sql_query = NULL; +static int verbose = 0; +static thresholds *my_thresholds = NULL; int main(int argc, char **argv) { -- cgit v1.2.3-74-g34f1