[monitoring-plugins] check_disk: remove unused variables and functions
Lorenz Kästle
git at monitoring-plugins.org
Fri Sep 27 14:00:11 CEST 2024
Module: monitoring-plugins
Branch: check_disk_static_fixes
Commit: fb5175aed64bdeb1b5f2725d185ba42576067dda
Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
Date: Fri Sep 27 13:53:24 2024 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=fb5175a
check_disk: remove unused variables and functions
---
plugins/check_disk.c | 15 ---------------
1 file changed, 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
#endif
static int process_arguments (int, char **);
-static void print_path (const char *mypath);
static void set_all_thresholds (struct parameter_list *path);
-static int validate_arguments (uintmax_t, uintmax_t, double, double, double, double, char *);
static void print_help (void);
void print_usage (void);
static double calculate_percent(uintmax_t, uintmax_t);
@@ -130,7 +128,6 @@ static bool stat_path (struct parameter_list *p);
static void get_stats (struct parameter_list *p, struct fs_usage *fsp);
static void get_path_stats (struct parameter_list *p, struct fs_usage *fsp);
-static char *exclude_device;
static char *units;
static uintmax_t mult = 1024 * 1024;
static int verbose = 0;
@@ -899,18 +896,6 @@ process_arguments (int argc, char **argv)
return true;
}
-
-
-void
-print_path (const char *mypath)
-{
- if (mypath == NULL)
- printf ("\n");
- else
- printf (_(" for %s\n"), mypath);
-}
-
-
void
set_all_thresholds (struct parameter_list *path)
{
More information about the Commits
mailing list