From ce538b0dd9140fee6a961f35b5b6e2576304bad4 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:55:05 +0100 Subject: check_nagios: do not export local variables diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index ebceb52..6a68984 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c @@ -40,15 +40,15 @@ const char *email = "devel@monitoring-plugins.org"; #include "runcmd.h" #include "utils.h" -int process_arguments(int, char **); -void print_help(void); +static int process_arguments(int /*argc*/, char ** /*argv*/); +static void print_help(void); void print_usage(void); -char *status_log = NULL; -char *process_string = NULL; -int expire_minutes = 0; +static char *status_log = NULL; +static char *process_string = NULL; +static int expire_minutes = 0; -int verbose = 0; +static int verbose = 0; int main(int argc, char **argv) { int result = STATE_UNKNOWN; -- cgit v0.10-9-g596f