fundamental: rework IN_SET() to require at least three arguments
If less than three parameters are passed a simple comparison is the better choice. Lo and behold this found two pretty bad typos.
This commit is contained in:
+1
-1
@@ -864,7 +864,7 @@ static int timer_clean(Unit *u, ExecCleanMask mask) {
|
||||
if (t->state != TIMER_DEAD)
|
||||
return -EBUSY;
|
||||
|
||||
if (!IN_SET(mask, EXEC_CLEAN_STATE))
|
||||
if (mask != EXEC_CLEAN_STATE)
|
||||
return -EUNATCH;
|
||||
|
||||
r = timer_setup_persistent(t);
|
||||
|
||||
Reference in New Issue
Block a user