From a581465ca935d59d6627a537456517cef6334380 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:03:16 +0100 Subject: check_swap stuff: Use pragma once instead of include guard --- plugins/check_swap.d/check_swap.h | 5 +---- 1 file changed, 1 insertion(+), 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 @@ -#ifndef CHECK_SWAP_H -#define CHECK_SWAP_H +#pragma once #include "../common.h" @@ -42,5 +41,3 @@ swap_result getSwapFromProcMeminfo(char path_to_proc_meminfo[]); swap_result getSwapFromSwapCommand(swap_config config, const char swap_command[], const char swap_format[]); swap_result getSwapFromSwapctl_BSD(swap_config config); swap_result getSwapFromSwap_SRV4(swap_config config); - -#endif -- cgit v1.2.3-74-g34f1