diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-04 12:14:36 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-04 12:14:36 +0100 |
| commit | b207ac3b0ab4dd4511fb9a25edb84e150b8b3482 (patch) | |
| tree | 0e71b94c9ef3447c4ebfe06d67379d91cfdade89 | |
| parent | bb9fcf5bfaf34aeffd651919b5a14b631b9fceb4 (diff) | |
| download | monitoring-plugins-b207ac3b0ab4dd4511fb9a25edb84e150b8b3482.tar.gz | |
remove cpp constant and localize that value instead
| -rw-r--r-- | plugins/check_pgsql.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 793a686f..66b9231e 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
| @@ -71,8 +71,6 @@ void print_usage(void); | |||
| 71 | 71 | ||
| 72 | static int verbose = 0; | 72 | static int verbose = 0; |
| 73 | 73 | ||
| 74 | #define OPTID_QUERYNAME -1000 | ||
| 75 | |||
| 76 | /****************************************************************************** | 74 | /****************************************************************************** |
| 77 | 75 | ||
| 78 | The (pseudo?)literate programming XML is contained within \@\@\- <XML> \-\@\@ | 76 | The (pseudo?)literate programming XML is contained within \@\@\- <XML> \-\@\@ |
| @@ -244,6 +242,11 @@ int main(int argc, char **argv) { | |||
| 244 | 242 | ||
| 245 | /* process command-line arguments */ | 243 | /* process command-line arguments */ |
| 246 | check_pgsql_config_wrapper process_arguments(int argc, char **argv) { | 244 | check_pgsql_config_wrapper process_arguments(int argc, char **argv) { |
| 245 | |||
| 246 | enum { | ||
| 247 | OPTID_QUERYNAME = CHAR_MAX + 1, | ||
| 248 | }; | ||
| 249 | |||
| 247 | static struct option longopts[] = {{"help", no_argument, 0, 'h'}, | 250 | static struct option longopts[] = {{"help", no_argument, 0, 'h'}, |
| 248 | {"version", no_argument, 0, 'V'}, | 251 | {"version", no_argument, 0, 'V'}, |
| 249 | {"timeout", required_argument, 0, 't'}, | 252 | {"timeout", required_argument, 0, 't'}, |
