[monitoring-plugins] check_mysql: Label some booleans correctly

Lorenz Kästle git at monitoring-plugins.org
Fri Sep 6 02:00:11 CEST 2024


 Module: monitoring-plugins
 Branch: master
 Commit: 4f7ee057865e75d0eb95874b2404eb21bb5d508f
 Author: Lorenz Kästle <lorenz.kaestle at netways.de>
   Date: Wed Aug 28 19:20:31 2024 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4f7ee05

check_mysql: Label some booleans correctly

---

 plugins/check_mysql.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index a2a5e32..15ec04c 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;



More information about the Commits mailing list