X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fbasic%2Fbarrier.c;h=0c44e47b12ce921fda12ec476c00696e84c97cfe;hb=3742095b27f8df4b195d530b52d15bc5fea70bf1;hp=2da633b31188a305ad95186ce2f314e8bb6ddfd0;hpb=01a65d4180446661732d90d23a24ab692d279295;p=thirdparty%2Fsystemd.git diff --git a/src/basic/barrier.c b/src/basic/barrier.c index 2da633b3118..0c44e47b12c 100644 --- a/src/basic/barrier.c +++ b/src/basic/barrier.c @@ -171,7 +171,7 @@ void barrier_set_role(Barrier *b, unsigned int role) { int fd; assert(b); - assert(role == BARRIER_PARENT || role == BARRIER_CHILD); + assert(IN_SET(role, BARRIER_PARENT, BARRIER_CHILD)); /* make sure this is only called once */ assert(b->pipe[0] >= 0 && b->pipe[1] >= 0);