From 877a2a36d6c7329d1a482460d5990fd258444bac Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Mon, 31 Mar 2025 16:41:23 +0300 Subject: [PATCH] Use stdbool.h for bool No need to define own bool/true/false values. Signed-off-by: Lev Stipakov --- main.h | 6 +----- service.c | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/main.h b/main.h index 61c0b31..29b1215 100644 --- a/main.h +++ b/main.h @@ -26,6 +26,7 @@ #include #include #include +#include /* Define this to enable DEBUG build */ /*#define DEBUG */ @@ -64,11 +65,6 @@ #define MSGF_OVPN_WAIT (MSGF_USER + 1) -/* bool definitions */ -#define bool int -#define true 1 -#define false 0 - /* GCC function attributes */ #ifdef _MSC_VER #define UNUSED diff --git a/service.c b/service.c index 0508e16..40b724f 100644 --- a/service.c +++ b/service.c @@ -38,7 +38,7 @@ extern options_t o; -bool +BOOL CheckIServiceStatus(BOOL warn) { SC_HANDLE schSCManager = NULL;