summaryrefslogtreecommitdiff
path: root/src/include/gcc.h
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-09-11 12:08:12 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-09-28 16:35:18 +1000
commit8e212cf8907a5d2462dead47aebcce074dd3c066 (patch)
treef25d5eba63c16a964a73f5e4168d54466f816125 /src/include/gcc.h
parent3489b0bec18adcf574b274dad4b390182deb7c13 (diff)
downloadmongo-8e212cf8907a5d2462dead47aebcce074dd3c066.tar.gz
WT-2093 Use the C99 bool type to clarify when functions return true/false
Merge pull request #2178 from wiredtiger/use-bool (cherry picked from commit d9391c0df4dc38c8ea571bde4808ced194d7cff0)
Diffstat (limited to 'src/include/gcc.h')
-rw-r--r--src/include/gcc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gcc.h b/src/include/gcc.h
index 831dcd735d5..238c54fed9e 100644
--- a/src/include/gcc.h
+++ b/src/include/gcc.h
@@ -123,7 +123,7 @@ __wt_atomic_sub##name(type *vp, type v) \
{ \
return (__sync_sub_and_fetch(vp, v)); \
} \
-static inline int \
+static inline bool \
__wt_atomic_cas##name(type *vp, type old, type new) \
{ \
return (WT_ATOMIC_CAS(vp, old, new)); \
@@ -145,7 +145,7 @@ WT_ATOMIC_FUNC(size, size_t, size_t)
* __wt_atomic_cas_ptr --
* Pointer compare and swap.
*/
-static inline int
+static inline bool
__wt_atomic_cas_ptr(void *vp, void *old, void *new)
{
return (WT_ATOMIC_CAS((void **)vp, old, new));