summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-09-05 23:51:23 (GMT)
committerGitHub <noreply@github.com>2024-09-05 23:51:23 (GMT)
commita378134ddc042d72d6fde7b018de66e98d9e41d5 (patch)
tree37012544acf6f6cbbd8ebb7b4b7dde3f32746249
parent3e06d3a965f42a4576f8f6bf406d20d329b319b1 (diff)
parent4f7ee057865e75d0eb95874b2404eb21bb5d508f (diff)
downloadmonitoring-plugins-a378134ddc042d72d6fde7b018de66e98d9e41d5.tar.gz
Merge pull request #2015 from RincewindsHat/fix/check_mysql_variables
check_mysql: * remove unused variables * convert two practical booleans to real `bool`
-rw-r--r--plugins/check_mysql.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 6a7daf1..15ec04c 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -59,8 +59,8 @@ bool ssl = false;
59char *opt_file = NULL; 59char *opt_file = NULL;
60char *opt_group = NULL; 60char *opt_group = NULL;
61unsigned int db_port = MYSQL_PORT; 61unsigned int db_port = MYSQL_PORT;
62int check_slave = 0, warn_sec = 0, crit_sec = 0; 62bool check_slave = false;
63int ignore_auth = 0; 63bool ignore_auth = false;
64int verbose = 0; 64int verbose = 0;
65 65
66static double warning_time = 0; 66static double warning_time = 0;
@@ -456,10 +456,10 @@ process_arguments (int argc, char **argv)
456 db_port = atoi (optarg); 456 db_port = atoi (optarg);
457 break; 457 break;
458 case 'S': 458 case 'S':
459 check_slave = 1; /* check-slave */ 459 check_slave = true; /* check-slave */
460 break; 460 break;
461 case 'n': 461 case 'n':
462 ignore_auth = 1; /* ignore-auth */ 462 ignore_auth = true; /* ignore-auth */
463 break; 463 break;
464 case 'w': 464 case 'w':
465 warning = optarg; 465 warning = optarg;