diff options
Diffstat (limited to 'plugins/check_radius.c')
-rw-r--r-- | plugins/check_radius.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c index 6b32710..d9ff8fa 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * Monitoring check_radius plugin | 3 | * Monitoring check_radius plugin |
4 | * | 4 | * |
5 | * License: GPL | 5 | * License: GPL |
6 | * Copyright (c) 1999-2008 Monitoring Plugins Development Team | 6 | * Copyright (c) 1999-2024 Monitoring Plugins Development Team |
7 | * | 7 | * |
8 | * Description: | 8 | * Description: |
9 | * | 9 | * |
@@ -29,7 +29,7 @@ | |||
29 | *****************************************************************************/ | 29 | *****************************************************************************/ |
30 | 30 | ||
31 | const char *progname = "check_radius"; | 31 | const char *progname = "check_radius"; |
32 | const char *copyright = "2000-2008"; | 32 | const char *copyright = "2000-2024"; |
33 | const char *email = "devel@monitoring-plugins.org"; | 33 | const char *email = "devel@monitoring-plugins.org"; |
34 | 34 | ||
35 | #include "common.h" | 35 | #include "common.h" |
@@ -46,8 +46,8 @@ const char *email = "devel@monitoring-plugins.org"; | |||
46 | #include <radiusclient.h> | 46 | #include <radiusclient.h> |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | int process_arguments (int, char **); | 49 | static int process_arguments (int /*argc*/, char ** /*argv*/); |
50 | void print_help (void); | 50 | static void print_help (void); |
51 | void print_usage (void); | 51 | void print_usage (void); |
52 | 52 | ||
53 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI) | 53 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI) |
@@ -78,22 +78,22 @@ void print_usage (void); | |||
78 | #define REJECT_RC BADRESP_RC | 78 | #define REJECT_RC BADRESP_RC |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | int my_rc_read_config(char *); | 81 | static int my_rc_read_config(char * /*a*/); |
82 | 82 | ||
83 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI) | 83 | #if defined(HAVE_LIBFREERADIUS_CLIENT) || defined(HAVE_LIBRADIUSCLIENT_NG) || defined(HAVE_LIBRADCLI) |
84 | rc_handle *rch = NULL; | 84 | static rc_handle *rch = NULL; |
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | char *server = NULL; | 87 | static char *server = NULL; |
88 | char *username = NULL; | 88 | static char *username = NULL; |
89 | char *password = NULL; | 89 | static char *password = NULL; |
90 | char *nasid = NULL; | 90 | static char *nasid = NULL; |
91 | char *nasipaddress = NULL; | 91 | static char *nasipaddress = NULL; |
92 | char *expect = NULL; | 92 | static char *expect = NULL; |
93 | char *config_file = NULL; | 93 | static char *config_file = NULL; |
94 | unsigned short port = PW_AUTH_UDP_PORT; | 94 | static unsigned short port = PW_AUTH_UDP_PORT; |
95 | int retries = 1; | 95 | static int retries = 1; |
96 | bool verbose = false; | 96 | static bool verbose = false; |
97 | 97 | ||
98 | /****************************************************************************** | 98 | /****************************************************************************** |
99 | 99 | ||