mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
check_mysql: replace cpp constant with a proper enum
This commit is contained in:
parent
7240eae6ef
commit
b6150cded1
1 changed files with 5 additions and 2 deletions
|
|
@ -401,10 +401,13 @@ int main(int argc, char **argv) {
|
|||
return STATE_OK;
|
||||
}
|
||||
|
||||
#define CHECK_REPLICA_OPT CHAR_MAX + 1
|
||||
|
||||
/* process command-line arguments */
|
||||
check_mysql_config_wrapper process_arguments(int argc, char **argv) {
|
||||
|
||||
enum {
|
||||
CHECK_REPLICA_OPT = CHAR_MAX + 1,
|
||||
};
|
||||
|
||||
static struct option longopts[] = {{"hostname", required_argument, 0, 'H'},
|
||||
{"socket", required_argument, 0, 's'},
|
||||
{"database", required_argument, 0, 'd'},
|
||||
|
|
|
|||
Loading…
Reference in a new issue