[monitoring-plugins] check_ups: 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: 6848e618c0eb54563707bf473fbd8c4acf6d2b2d
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Fri Nov 8 12:49:37 2024 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6848e61
check_ups: delare file local variables static
---
plugins/check_ups.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index adb7ab8..5dfa72a 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -97,13 +97,13 @@ ups_config ups_config_init(void) {
}
// Forward declarations
-int determine_status(ups_config *, int *supported_options);
-int get_ups_variable(const char *, char *, const ups_config config);
+static int determine_status(ups_config * /*config*/, int *supported_options);
+static int get_ups_variable(const char * /*varname*/, char * /*buf*/, ups_config config);
-int process_arguments(int, char **, ups_config *);
-int validate_arguments(ups_config);
-void print_help(void);
-void print_usage(void);
+static int process_arguments(int /*argc*/, char ** /*argv*/, ups_config * /*config*/);
+static int validate_arguments(ups_config /*config*/);
+static void print_help(void);
+static void print_usage(void);
int main(int argc, char **argv) {
setlocale(LC_ALL, "");
More information about the Commits
mailing list