cgroup-util: make definition of CGROUP_CONTROLLER_TO_MASK() unsigned
Otherwise doing comparing a CGroupMask (which is unsigned in effect) with the result of CGROUP_CONTROLLER_TO_MASK() will result in warnings about signedness differences.
This commit is contained in:
parent
f99850a0d4
commit
46f84f955f
|
@ -36,7 +36,7 @@ typedef enum CGroupController {
|
|||
_CGROUP_CONTROLLER_INVALID = -1,
|
||||
} CGroupController;
|
||||
|
||||
#define CGROUP_CONTROLLER_TO_MASK(c) (1 << (c))
|
||||
#define CGROUP_CONTROLLER_TO_MASK(c) (1U << (c))
|
||||
|
||||
/* A bit mask of well known cgroup controllers */
|
||||
typedef enum CGroupMask {
|
||||
|
|
Loading…
Reference in a new issue