From b207ac3b0ab4dd4511fb9a25edb84e150b8b3482 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:14:36 +0100 Subject: remove cpp constant and localize that value instead --- plugins/check_pgsql.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/check_pgsql.c') 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); static int verbose = 0; -#define OPTID_QUERYNAME -1000 - /****************************************************************************** The (pseudo?)literate programming XML is contained within \@\@\- \-\@\@ @@ -244,6 +242,11 @@ int main(int argc, char **argv) { /* process command-line arguments */ check_pgsql_config_wrapper process_arguments(int argc, char **argv) { + + enum { + OPTID_QUERYNAME = CHAR_MAX + 1, + }; + static struct option longopts[] = {{"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, {"timeout", required_argument, 0, 't'}, -- cgit v1.2.3-74-g34f1