[lxc-devel] [lxcfs/master] fix type mismatch
PeterRK on Github
lxc-bot at linuxcontainers.org
Sat Jul 18 12:17:37 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 348 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200718/853711e6/attachment.bin>
-------------- next part --------------
From 85bd3f8e2fa9b20718689eb1e1f6181e8fc3922a Mon Sep 17 00:00:00 2001
From: Ruan Kunliang <PeterRK at 126.com>
Date: Sat, 18 Jul 2020 20:16:12 +0800
Subject: [PATCH] fix type mismatch
Signed-off-by: Ruan Kunliang <PeterRK at 126.com>
---
src/cgroups/cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cgroups/cgroup.c b/src/cgroups/cgroup.c
index fee04c8..6fe1902 100644
--- a/src/cgroups/cgroup.c
+++ b/src/cgroups/cgroup.c
@@ -108,7 +108,7 @@ char *get_pid_cgroup(pid_t pid, const char *contrl)
cfd = get_cgroup_fd(contrl);
if (cfd < 0)
- return false;
+ return NULL;
if (pure_unified_layout(cgroup_ops))
return cg_unified_get_current_cgroup(pid);
More information about the lxc-devel
mailing list