projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f99850a
)
cgroup-util: make definition of CGROUP_CONTROLLER_TO_MASK() unsigned
author
Lennart Poettering
<lennart@poettering.net>
Fri, 26 Oct 2018 13:31:30 +0000
(15:31 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 26 Oct 2018 16:43:34 +0000
(18:43 +0200)
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.
src/basic/cgroup-util.h
patch
|
blob
|
history
diff --git
a/src/basic/cgroup-util.h
b/src/basic/cgroup-util.h
index 546b86eb7ce405a7ab4993f1305b0dad4417530a..c2bf487ab319c1128355422c295e1f4cd3a51f42 100644
(file)
--- 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) (1
U
<< (c))
/* A bit mask of well known cgroup controllers */
typedef enum CGroupMask {