From: Lennart Poettering Date: Fri, 26 Oct 2018 13:31:30 +0000 (+0200) Subject: cgroup-util: make definition of CGROUP_CONTROLLER_TO_MASK() unsigned X-Git-Tag: v240~458^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46f84f955fa718fe674bc56e7ea40cc286043142;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index 546b86eb7ce..c2bf487ab31 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 {