[monitoring-plugins] check_disk: Remove some dead variables
RincewindsHat
git at monitoring-plugins.org
Tue Sep 12 10:10:12 CEST 2023
Module: monitoring-plugins
Branch: master
Commit: 53ea2304aa8364f74e76f82430b67833fccf402f
Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
Date: Tue Sep 12 00:50:55 2023 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=53ea230
check_disk: Remove some dead variables
---
plugins/check_disk.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 39dc6cd..05e5502 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -131,9 +131,6 @@ bool stat_path (struct parameter_list *p);
void get_stats (struct parameter_list *p, struct fs_usage *fsp);
void get_path_stats (struct parameter_list *p, struct fs_usage *fsp);
-double w_dfp = -1.0;
-double c_dfp = -1.0;
-char *path;
char *exclude_device;
char *units;
uintmax_t mult = 1024 * 1024;
@@ -889,7 +886,7 @@ process_arguments (int argc, char **argv)
if (crit_usedspace_percent == NULL && argc > c && is_intnonneg (argv[c]))
crit_usedspace_percent = argv[c++];
- if (argc > c && path == NULL) {
+ if (argc > c) {
se = np_add_parameter(&path_select_list, strdup(argv[c++]));
path_selected = TRUE;
set_all_thresholds(se);
More information about the Commits
mailing list