projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6172794
)
nsjail: make njsconf::cgroup_pids_max unsigned int #2
author
Robert Swiecki
<robert@swiecki.net>
Wed, 25 Oct 2017 13:51:06 +0000
(15:51 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Wed, 25 Oct 2017 13:51:06 +0000
(15:51 +0200)
cgroup.c
patch
|
blob
|
history
diff --git
a/cgroup.c
b/cgroup.c
index 9694308145cc6c0ffb59df349c1773eb1f1c5d0b..4ed11f2b5e4871674ed7f1f6fb28596fadd67f6d 100644
(file)
--- a/
cgroup.c
+++ b/
cgroup.c
@@
-195,7
+195,7
@@
void cgroupFinishFromParentMem(struct nsjconf_t* nsjconf, pid_t pid)
void cgroupFinishFromParentPids(struct nsjconf_t* nsjconf, pid_t pid)
{
- if (nsjconf->cgroup_pids_max == 0) {
+ if (nsjconf->cgroup_pids_max == 0
U
) {
return;
}
char pids_cgroup_path[PATH_MAX];
@@
-210,7
+210,7
@@
void cgroupFinishFromParentPids(struct nsjconf_t* nsjconf, pid_t pid)
void cgroupFinishFromParentNetCls(struct nsjconf_t* nsjconf, pid_t pid)
{
- if (nsjconf->cgroup_net_cls_classid ==
(size_t)0
) {
+ if (nsjconf->cgroup_net_cls_classid ==
0U
) {
return;
}
char net_cls_cgroup_path[PATH_MAX];