summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-26 15:31:30 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-26 18:43:34 +0200
commit46f84f955fa718fe674bc56e7ea40cc286043142 (patch)
treed4f1b42240c86939309c585a949866389d4b8d61
parentf99850a0d4fb6d00f43c050f33a1863f704358ad (diff)
downloadsystemd-46f84f955fa718fe674bc56e7ea40cc286043142.tar.gz
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.
-rw-r--r--src/basic/cgroup-util.h2
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 {