[monitoring-plugins] check_radius: delare file local variables static
Lorenz Kästle
git at monitoring-plugins.org
Fri Nov 8 23:10:13 CET 2024
Module: monitoring-plugins
Branch: master
Commit: 6644a81c5795f71ec8acd60da76f8cef052e5ad5
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Fri Nov 8 12:45:53 2024 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6644a81
check_radius: delare file local variables static
---
plugins/check_radius.c | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 8ed19e5..d9ff8fa 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -46,8 +46,8 @@ const char *email = "devel at monitoring-plugins.org";
#include <radiusclient.h>
#endif
-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);
#if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI)
@@ -78,22 +78,22 @@ void print_usage (void);
#define REJECT_RC BADRESP_RC
#endif
-int my_rc_read_config(char *);
+static int my_rc_read_config(char * /*a*/);
#if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI)
-rc_handle *rch = NULL;
+static rc_handle *rch = NULL;
#endif
-char *server = NULL;
-char *username = NULL;
-char *password = NULL;
-char *nasid = NULL;
-char *nasipaddress = NULL;
-char *expect = NULL;
-char *config_file = NULL;
-unsigned short port = PW_AUTH_UDP_PORT;
-int retries = 1;
-bool verbose = false;
+static char *server = NULL;
+static char *username = NULL;
+static char *password = NULL;
+static char *nasid = NULL;
+static char *nasipaddress = NULL;
+static char *expect = NULL;
+static char *config_file = NULL;
+static unsigned short port = PW_AUTH_UDP_PORT;
+static int retries = 1;
+static bool verbose = false;
/******************************************************************************
More information about the Commits
mailing list