diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-01-15 19:54:41 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 09:34:50 +0700 |
commit | 33391a77e9385cf403c2fb1b191b443fcf373294 (patch) | |
tree | f6f96b987f90419d4a2d6cfdec2f633d09252a07 /equipment.c | |
parent | dca59f06d70bd36d10704a08f8444152a82e99b8 (diff) | |
download | subsurface-33391a77e9385cf403c2fb1b191b443fcf373294.tar.gz |
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 <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } /* |