1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 14:55:37 +03:00

macro-fundamental: fix bool → sd_bool

This commit is contained in:
Lennart Poettering 2021-11-11 22:02:56 +01:00 committed by Luca Boccassi
parent 977e68c71b
commit e7cef2a6ea

View File

@ -85,7 +85,7 @@
#define ONCE __ONCE(UNIQ_T(_once_, UNIQ))
#define __ONCE(o) \
({ \
static bool (o) = sd_false; \
static sd_bool (o) = sd_false; \
__sync_bool_compare_and_swap(&(o), sd_false, sd_true); \
})