diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-16 12:22:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-16 12:22:18 +0200 |
commit | c1f0f113c95787e0cb553f2d0ed0a702164eaa97 (patch) | |
tree | 9fa1e9769d78c667bb740b7d25d73418bdf38d50 | |
parent | 601a48a63e745817cf2a4c7f3ca526e393dd3fb8 (diff) | |
parent | 88036425d5a24a742ebd85787fc9c98bafd6c12f (diff) | |
download | monitoring-plugins-c1f0f113.tar.gz |
Merge pull request #2153 from oxzi/check_swap-fix-bsd-svr4
check_swap: Fix Build At Least For OpenBSD
-rw-r--r-- | plugins/check_swap.d/swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_swap.d/swap.c b/plugins/check_swap.d/swap.c index 5b654197..58213a3c 100644 --- a/plugins/check_swap.d/swap.c +++ b/plugins/check_swap.d/swap.c | |||
@@ -52,10 +52,10 @@ swap_result get_swap_data(swap_config config) { | |||
52 | } | 52 | } |
53 | # else // HAVE_SWAP | 53 | # else // HAVE_SWAP |
54 | # ifdef CHECK_SWAP_SWAPCTL_SVR4 | 54 | # ifdef CHECK_SWAP_SWAPCTL_SVR4 |
55 | return getSwapFromSwapctl_SRV4(); | 55 | return getSwapFromSwapctl_SRV4(config); |
56 | # else // CHECK_SWAP_SWAPCTL_SVR4 | 56 | # else // CHECK_SWAP_SWAPCTL_SVR4 |
57 | # ifdef CHECK_SWAP_SWAPCTL_BSD | 57 | # ifdef CHECK_SWAP_SWAPCTL_BSD |
58 | return getSwapFromSwapctl_BSD(); | 58 | return getSwapFromSwapctl_BSD(config); |
59 | # else // CHECK_SWAP_SWAPCTL_BSD | 59 | # else // CHECK_SWAP_SWAPCTL_BSD |
60 | # error No way found to retrieve swap | 60 | # error No way found to retrieve swap |
61 | # endif /* CHECK_SWAP_SWAPCTL_BSD */ | 61 | # endif /* CHECK_SWAP_SWAPCTL_BSD */ |