diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-12-13 09:29:12 +0100 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-12-20 10:02:47 +0100 |
| commit | b32d7421ee81faaadb2729ee8b19cec4fd1b1899 (patch) | |
| tree | 6baa489ccbf57952984d0a4900986c093efc5f85 | |
| parent | 42f5f165787119a3c185f935ae2343de55736385 (diff) | |
| download | monitoring-plugins-b32d7421ee81faaadb2729ee8b19cec4fd1b1899.tar.gz | |
check_swap: Rename type since *_t is reserved for C standard types
| -rw-r--r-- | plugins/check_swap.c | 6 |
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"; | |||
| 54 | typedef struct { | 54 | typedef struct { |
| 55 | bool is_percentage; | 55 | bool is_percentage; |
| 56 | uint64_t value; | 56 | uint64_t value; |
| 57 | } threshold_t; | 57 | } threshold; |
| 58 | 58 | ||
| 59 | int check_swap (float free_swap_mb, float total_swap_mb); | 59 | int check_swap (float free_swap_mb, float total_swap_mb); |
| 60 | int process_arguments (int argc, char **argv); | 60 | int process_arguments (int argc, char **argv); |
| @@ -62,8 +62,8 @@ int validate_arguments (void); | |||
| 62 | void print_usage (void); | 62 | void print_usage (void); |
| 63 | void print_help (void); | 63 | void print_help (void); |
| 64 | 64 | ||
| 65 | threshold_t warn; | 65 | threshold warn; |
| 66 | threshold_t crit; | 66 | threshold crit; |
| 67 | int verbose; | 67 | int verbose; |
| 68 | bool allswaps = false; | 68 | bool allswaps = false; |
| 69 | int no_swap_state = STATE_CRITICAL; | 69 | int no_swap_state = STATE_CRITICAL; |
