summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-12-13 09:29:12 +0100
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-12-20 10:02:47 +0100
commitb32d7421ee81faaadb2729ee8b19cec4fd1b1899 (patch)
tree6baa489ccbf57952984d0a4900986c093efc5f85 /plugins/check_swap.c
parent42f5f165787119a3c185f935ae2343de55736385 (diff)
downloadmonitoring-plugins-b32d7421ee81faaadb2729ee8b19cec4fd1b1899.tar.gz
check_swap: Rename type since *_t is reserved for C standard types
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r--plugins/check_swap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 1a7011c0..9630071a 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -54,7 +54,7 @@ const char *email = "devel@monitoring-plugins.org";
54typedef struct { 54typedef struct {
55 bool is_percentage; 55 bool is_percentage;
56 uint64_t value; 56 uint64_t value;
57} threshold_t; 57} threshold;
58 58
59int check_swap (float free_swap_mb, float total_swap_mb); 59int check_swap (float free_swap_mb, float total_swap_mb);
60int process_arguments (int argc, char **argv); 60int process_arguments (int argc, char **argv);
@@ -62,8 +62,8 @@ int validate_arguments (void);
62void print_usage (void); 62void print_usage (void);
63void print_help (void); 63void print_help (void);
64 64
65threshold_t warn; 65threshold warn;
66threshold_t crit; 66threshold crit;
67int verbose; 67int verbose;
68bool allswaps = false; 68bool allswaps = false;
69int no_swap_state = STATE_CRITICAL; 69int no_swap_state = STATE_CRITICAL;