diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-15 15:03:16 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-15 15:03:16 +0100 |
commit | a581465ca935d59d6627a537456517cef6334380 (patch) | |
tree | 0786ae026ec0601ac2e608a623b319e3d52eae04 | |
parent | 152cdcf3e425e11224b3c52cf0863b6825ae0874 (diff) | |
download | monitoring-plugins-a581465ca935d59d6627a537456517cef6334380.tar.gz |
check_swap stuff: Use pragma once instead of include guard
-rw-r--r-- | plugins/check_swap.d/check_swap.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_swap.d/check_swap.h b/plugins/check_swap.d/check_swap.h index 5d878989..99039b21 100644 --- a/plugins/check_swap.d/check_swap.h +++ b/plugins/check_swap.d/check_swap.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef CHECK_SWAP_H | 1 | #pragma once |
2 | #define CHECK_SWAP_H | ||
3 | 2 | ||
4 | #include "../common.h" | 3 | #include "../common.h" |
5 | 4 | ||
@@ -42,5 +41,3 @@ swap_result getSwapFromProcMeminfo(char path_to_proc_meminfo[]); | |||
42 | swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]); | 41 | swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]); |
43 | swap_result getSwapFromSwapctl_BSD(swap_config config); | 42 | swap_result getSwapFromSwapctl_BSD(swap_config config); |
44 | swap_result getSwapFromSwap_SRV4(swap_config config); | 43 | swap_result getSwapFromSwap_SRV4(swap_config config); |
45 | |||
46 | #endif | ||