diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:49:37 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:49:37 +0100 |
commit | 6848e618c0eb54563707bf473fbd8c4acf6d2b2d (patch) | |
tree | 3a7b0260c46d2d3538d4e62699cfc1a14c9e412a | |
parent | d330b975b3c580c385c736c8a52209919de1d582 (diff) | |
download | monitoring-plugins-6848e618c0eb54563707bf473fbd8c4acf6d2b2d.tar.gz |
check_ups: delare file local variables static
-rw-r--r-- | plugins/check_ups.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c index adb7ab81..5dfa72a4 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c | |||
@@ -97,13 +97,13 @@ ups_config ups_config_init(void) { | |||
97 | } | 97 | } |
98 | 98 | ||
99 | // Forward declarations | 99 | // Forward declarations |
100 | int determine_status(ups_config *, int *supported_options); | 100 | static int determine_status(ups_config * /*config*/, int *supported_options); |
101 | int get_ups_variable(const char *, char *, const ups_config config); | 101 | static int get_ups_variable(const char * /*varname*/, char * /*buf*/, ups_config config); |
102 | 102 | ||
103 | int process_arguments(int, char **, ups_config *); | 103 | static int process_arguments(int /*argc*/, char ** /*argv*/, ups_config * /*config*/); |
104 | int validate_arguments(ups_config); | 104 | static int validate_arguments(ups_config /*config*/); |
105 | void print_help(void); | 105 | static void print_help(void); |
106 | void print_usage(void); | 106 | static void print_usage(void); |
107 | 107 | ||
108 | int main(int argc, char **argv) { | 108 | int main(int argc, char **argv) { |
109 | setlocale(LC_ALL, ""); | 109 | setlocale(LC_ALL, ""); |