summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-09-12 10:07:33 +0200
committerGitHub <noreply@github.com>2023-09-12 10:07:33 +0200
commit7cf099cfb4a0e2f99943ae44bf42c23424bdc19d (patch)
tree76683c7779ec7b0a3cd686154041bdeec71c2494
parent0e0c574e555bb12bbb3a4884f331f8d9d4ccbe0a (diff)
parent53ea2304aa8364f74e76f82430b67833fccf402f (diff)
downloadmonitoring-plugins-7cf099cfb4a0e2f99943ae44bf42c23424bdc19d.tar.gz
Merge pull request #1920 from RincewindsHat/fix/check_disk_remove_dead_variables
check_disk: Remove some dead variables
-rw-r--r--plugins/check_disk.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 39dc6cd2..05e55022 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -131,9 +131,6 @@ bool stat_path (struct parameter_list *p);
131void get_stats (struct parameter_list *p, struct fs_usage *fsp); 131void get_stats (struct parameter_list *p, struct fs_usage *fsp);
132void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); 132void get_path_stats (struct parameter_list *p, struct fs_usage *fsp);
133 133
134double w_dfp = -1.0;
135double c_dfp = -1.0;
136char *path;
137char *exclude_device; 134char *exclude_device;
138char *units; 135char *units;
139uintmax_t mult = 1024 * 1024; 136uintmax_t mult = 1024 * 1024;
@@ -889,7 +886,7 @@ process_arguments (int argc, char **argv)
889 if (crit_usedspace_percent == NULL && argc > c && is_intnonneg (argv[c])) 886 if (crit_usedspace_percent == NULL && argc > c && is_intnonneg (argv[c]))
890 crit_usedspace_percent = argv[c++]; 887 crit_usedspace_percent = argv[c++];
891 888
892 if (argc > c && path == NULL) { 889 if (argc > c) {
893 se = np_add_parameter(&path_select_list, strdup(argv[c++])); 890 se = np_add_parameter(&path_select_list, strdup(argv[c++]));
894 path_selected = TRUE; 891 path_selected = TRUE;
895 set_all_thresholds(se); 892 set_all_thresholds(se);