diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-09-27 11:53:24 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-09-27 11:53:24 (GMT) |
commit | fb5175aed64bdeb1b5f2725d185ba42576067dda (patch) | |
tree | 097e029dc3175d742f448d373eec8f3cf2c64d81 /plugins | |
parent | 7ca72ecace9f74bbd121e6cb604722647cf90701 (diff) | |
download | monitoring-plugins-fb5175aed64bdeb1b5f2725d185ba42576067dda.tar.gz |
check_disk: remove unused variables and functionsrefs/pull/2021/head
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_disk.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 8bfc69b..b3dd301 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -120,9 +120,7 @@ enum | |||
120 | #endif | 120 | #endif |
121 | 121 | ||
122 | static int process_arguments (int, char **); | 122 | static int process_arguments (int, char **); |
123 | static void print_path (const char *mypath); | ||
124 | static void set_all_thresholds (struct parameter_list *path); | 123 | static void set_all_thresholds (struct parameter_list *path); |
125 | static int validate_arguments (uintmax_t, uintmax_t, double, double, double, double, char *); | ||
126 | static void print_help (void); | 124 | static void print_help (void); |
127 | void print_usage (void); | 125 | void print_usage (void); |
128 | static double calculate_percent(uintmax_t, uintmax_t); | 126 | static double calculate_percent(uintmax_t, uintmax_t); |
@@ -130,7 +128,6 @@ static bool stat_path (struct parameter_list *p); | |||
130 | static void get_stats (struct parameter_list *p, struct fs_usage *fsp); | 128 | static void get_stats (struct parameter_list *p, struct fs_usage *fsp); |
131 | static void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); | 129 | static void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); |
132 | 130 | ||
133 | static char *exclude_device; | ||
134 | static char *units; | 131 | static char *units; |
135 | static uintmax_t mult = 1024 * 1024; | 132 | static uintmax_t mult = 1024 * 1024; |
136 | static int verbose = 0; | 133 | static int verbose = 0; |
@@ -899,18 +896,6 @@ process_arguments (int argc, char **argv) | |||
899 | return true; | 896 | return true; |
900 | } | 897 | } |
901 | 898 | ||
902 | |||
903 | |||
904 | void | ||
905 | print_path (const char *mypath) | ||
906 | { | ||
907 | if (mypath == NULL) | ||
908 | printf ("\n"); | ||
909 | else | ||
910 | printf (_(" for %s\n"), mypath); | ||
911 | } | ||
912 | |||
913 | |||
914 | void | 899 | void |
915 | set_all_thresholds (struct parameter_list *path) | 900 | set_all_thresholds (struct parameter_list *path) |
916 | { | 901 | { |