diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-06 10:08:02 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-06 10:08:02 +0100 |
| commit | b6150cded11526ffde40d9fa14f37a76e712c447 (patch) | |
| tree | 8f70ac804a301a854041d786011bd7afd619eac0 /plugins | |
| parent | 7240eae6ef5b66f26967ab6e236ae3ebe7448efc (diff) | |
| download | monitoring-plugins-b6150cded11526ffde40d9fa14f37a76e712c447.tar.gz | |
check_mysql: replace cpp constant with a proper enum
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_mysql.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 6134d6c6..7f2da5ac 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
| @@ -401,10 +401,13 @@ int main(int argc, char **argv) { | |||
| 401 | return STATE_OK; | 401 | return STATE_OK; |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | #define CHECK_REPLICA_OPT CHAR_MAX + 1 | ||
| 405 | |||
| 406 | /* process command-line arguments */ | 404 | /* process command-line arguments */ |
| 407 | check_mysql_config_wrapper process_arguments(int argc, char **argv) { | 405 | check_mysql_config_wrapper process_arguments(int argc, char **argv) { |
| 406 | |||
| 407 | enum { | ||
| 408 | CHECK_REPLICA_OPT = CHAR_MAX + 1, | ||
| 409 | }; | ||
| 410 | |||
| 408 | static struct option longopts[] = {{"hostname", required_argument, 0, 'H'}, | 411 | static struct option longopts[] = {{"hostname", required_argument, 0, 'H'}, |
| 409 | {"socket", required_argument, 0, 's'}, | 412 | {"socket", required_argument, 0, 's'}, |
| 410 | {"database", required_argument, 0, 'd'}, | 413 | {"database", required_argument, 0, 'd'}, |
