mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
shared/condition: use BIT_SET where appropriate
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "architecture.h"
|
||||
#include "audit-util.h"
|
||||
#include "battery-util.h"
|
||||
#include "bitfield.h"
|
||||
#include "blockdev-util.h"
|
||||
#include "cap-list.h"
|
||||
#include "capability-util.h"
|
||||
@@ -718,7 +719,7 @@ static int condition_test_capability(Condition *c, char **env) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
return !!(q.bounding & ((UINT64_C(1) << value)));
|
||||
return BIT_SET(q.bounding, value);
|
||||
}
|
||||
|
||||
static int condition_test_needs_update(Condition *c, char **env) {
|
||||
|
||||
Reference in New Issue
Block a user