From 33391a77e9385cf403c2fb1b191b443fcf373294 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 15 Jan 2014 19:54:41 +0100 Subject: Convert the C code to using stdbool and true/false Earlier we converted the C++ code to using true/false, and this converts the C code to using the same style. We already depended on stdbool.h in subsurfacestartup.[ch], and we build with -std=gnu99 so nobody could build subsurface without a c99 compiler. [Dirk Hohndel: small change suggested by Thiago Macieira: don't include stdbool.h for C++] Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- equipment.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'equipment.c') diff --git a/equipment.c b/equipment.c index 133bef2b2..b60aa3eab 100644 --- a/equipment.c +++ b/equipment.c @@ -91,8 +91,8 @@ bool no_weightsystems(weightsystem_t *ws) for (i = 0; i < MAX_WEIGHTSYSTEMS; i++) if (!weightsystem_none(ws + i)) - return FALSE; - return TRUE; + return false; + return true; } static bool one_weightsystem_equal(weightsystem_t *ws1, weightsystem_t *ws2) @@ -107,8 +107,8 @@ bool weightsystems_equal(weightsystem_t *ws1, weightsystem_t *ws2) for (i = 0; i < MAX_WEIGHTSYSTEMS; i++) if (!one_weightsystem_equal(ws1 + i, ws2 + i)) - return FALSE; - return TRUE; + return false; + return true; } /* -- cgit v1.2.3-70-g09d2