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:
Lennart Poettering 2018-10-26 15:31:30 +02:00
parent f99850a0d4
commit 46f84f955f

View file

@ -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 {