summaryrefslogtreecommitdiffstats
path: root/lib/seqlock.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-04 14:05:22 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-04 14:05:22 +0100
commitf06c4576b781a76bdc41031d5b97cf858cc2143a (patch)
tree638392c20de3bbd0a79a1baf9e536f3307c30f4e /lib/seqlock.c
parent*: Use short version of bool expressions (diff)
downloadfrr-f06c4576b781a76bdc41031d5b97cf858cc2143a.tar.xz
frr-f06c4576b781a76bdc41031d5b97cf858cc2143a.zip
*: Return bool type for bool functions
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/seqlock.c')
-rw-r--r--lib/seqlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/seqlock.c b/lib/seqlock.c
index c05ec19db..588a1175b 100644
--- a/lib/seqlock.c
+++ b/lib/seqlock.c
@@ -254,7 +254,7 @@ bool seqlock_check(struct seqlock *sqlo, seqlock_val_t val)
cur = atomic_load_explicit(&sqlo->pos, memory_order_relaxed);
if (!(cur & SEQLOCK_HELD))
- return 1;
+ return true;
cur = SEQLOCK_VAL(cur) - val - 1;
assert(cur < 0x40000000 || cur > 0xc0000000);
return cur < 0x80000000;