diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 11:47:01 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 11:47:01 (GMT) |
commit | f9fd727323e67821360ceae3ad2c8e5bb9cb71e2 (patch) | |
tree | 47ef0b49621b4089516dda1f956cbab8b7983554 /plugins | |
parent | 13880ab5dc33d897501a18e22d97b7a41c828137 (diff) | |
download | monitoring-plugins-f9fd727323e67821360ceae3ad2c8e5bb9cb71e2.tar.gz |
check_mysql_query: do not export local symbols
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_mysql_query.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c index 18057d6..5275346 100644 --- a/plugins/check_mysql_query.c +++ b/plugins/check_mysql_query.c | |||
@@ -41,23 +41,23 @@ const char *email = "devel@monitoring-plugins.org"; | |||
41 | #include <mysql.h> | 41 | #include <mysql.h> |
42 | #include <errmsg.h> | 42 | #include <errmsg.h> |
43 | 43 | ||
44 | char *db_user = NULL; | 44 | static char *db_user = NULL; |
45 | char *db_host = NULL; | 45 | static char *db_host = NULL; |
46 | char *db_socket = NULL; | 46 | static char *db_socket = NULL; |
47 | char *db_pass = NULL; | 47 | static char *db_pass = NULL; |
48 | char *db = NULL; | 48 | static char *db = NULL; |
49 | char *opt_file = NULL; | 49 | static char *opt_file = NULL; |
50 | char *opt_group = NULL; | 50 | static char *opt_group = NULL; |
51 | unsigned int db_port = MYSQL_PORT; | 51 | static unsigned int db_port = MYSQL_PORT; |
52 | 52 | ||
53 | int process_arguments(int, char **); | 53 | static int process_arguments(int, char **); |
54 | int validate_arguments(void); | 54 | static int validate_arguments(void); |
55 | void print_help(void); | 55 | static void print_help(void); |
56 | void print_usage(void); | 56 | void print_usage(void); |
57 | 57 | ||
58 | char *sql_query = NULL; | 58 | static char *sql_query = NULL; |
59 | int verbose = 0; | 59 | static int verbose = 0; |
60 | thresholds *my_thresholds = NULL; | 60 | static thresholds *my_thresholds = NULL; |
61 | 61 | ||
62 | int main(int argc, char **argv) { | 62 | int main(int argc, char **argv) { |
63 | 63 | ||