diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-26 15:31:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-26 18:43:34 +0200 |
commit | 46f84f955fa718fe674bc56e7ea40cc286043142 (patch) | |
tree | d4f1b42240c86939309c585a949866389d4b8d61 /src | |
parent | f99850a0d4fb6d00f43c050f33a1863f704358ad (diff) | |
download | systemd-46f84f955fa718fe674bc56e7ea40cc286043142.tar.gz systemd-46f84f955fa718fe674bc56e7ea40cc286043142.tar.bz2 systemd-46f84f955fa718fe674bc56e7ea40cc286043142.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/cgroup-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index 546b86eb7c..c2bf487ab3 100644 --- a/src/basic/cgroup-util.h +++ b/src/basic/cgroup-util.h @@ -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 { |