[lxc-devel] [lxcfs/master] fix type mismatch
PeterRK on Github
lxc-bot at linuxcontainers.org
Sat Jul 18 12:10:34 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 302 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200718/8786ec5e/attachment.bin>
-------------- next part --------------
From 22b0ca55886b7bb990b3d12d7cdd08ec7d2b3fb6 Mon Sep 17 00:00:00 2001
From: Ruan Kunliang <PeterRK at 126.com>
Date: Sat, 18 Jul 2020 20:09:31 +0800
Subject: [PATCH] fix type mismatch
---
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