From 584cca3a96845d7720c34358340c98c31c765fc4 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle Date: Wed, 28 Aug 2024 19:19:16 +0200 Subject: check_mysql: remove unused global variables --- plugins/check_mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_mysql.c') diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 6a7daf11..a2a5e32d 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -59,7 +59,7 @@ bool ssl = false; char *opt_file = NULL; char *opt_group = NULL; unsigned int db_port = MYSQL_PORT; -int check_slave = 0, warn_sec = 0, crit_sec = 0; +int check_slave = 0; int ignore_auth = 0; int verbose = 0; -- cgit v1.2.3-74-g34f1 From 4f7ee057865e75d0eb95874b2404eb21bb5d508f Mon Sep 17 00:00:00 2001 From: Lorenz Kästle Date: Wed, 28 Aug 2024 19:20:31 +0200 Subject: check_mysql: Label some booleans correctly --- plugins/check_mysql.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/check_mysql.c') diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index a2a5e32d..15ec04c0 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -59,8 +59,8 @@ bool ssl = false; char *opt_file = NULL; char *opt_group = NULL; unsigned int db_port = MYSQL_PORT; -int check_slave = 0; -int ignore_auth = 0; +bool check_slave = false; +bool ignore_auth = false; int verbose = 0; static double warning_time = 0; @@ -456,10 +456,10 @@ process_arguments (int argc, char **argv) db_port = atoi (optarg); break; case 'S': - check_slave = 1; /* check-slave */ + check_slave = true; /* check-slave */ break; case 'n': - ignore_auth = 1; /* ignore-auth */ + ignore_auth = true; /* ignore-auth */ break; case 'w': warning = optarg; -- cgit v1.2.3-74-g34f1 From de5709bd7c0a15475daaf131491d3aa76ff464aa Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:45:24 +0100 Subject: check_mysql: update copyright --- plugins/check_mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_mysql.c') diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 15ec04c0..1f0b7099 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -5,7 +5,7 @@ * License: GPL * Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at) * Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net) -* Copyright (c) 1999-2011 Monitoring Plugins Development Team +* Copyright (c) 1999-2024 Monitoring Plugins Development Team * * Description: * @@ -31,7 +31,7 @@ *****************************************************************************/ const char *progname = "check_mysql"; -const char *copyright = "1999-2011"; +const char *copyright = "1999-2024"; const char *email = "devel@monitoring-plugins.org"; #define SLAVERESULTSIZE 96 -- cgit v1.2.3-74-g34f1