The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxcfs/pull/171
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com>
From 234a820c456fdd3ab78ff2fe95f5fbe74001dad8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller <w.bumil...@proxmox.com> Date: Wed, 1 Feb 2017 15:19:24 +0100 Subject: [PATCH] cleanup: return false instead of NULL as bool Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com> --- bindings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings.c b/bindings.c index a23c349..2d4c36a 100644 --- a/bindings.c +++ b/bindings.c @@ -863,11 +863,11 @@ bool cgfs_get_value(const char *controller, const char *cgroup, const char *file fnam = alloca(len); ret = snprintf(fnam, len, "%s%s/%s", *cgroup == '/' ? "." : "", cgroup, file); if (ret < 0 || (size_t)ret >= len) - return NULL; + return false; fd = openat(cfd, fnam, O_RDONLY); if (fd < 0) - return NULL; + return false; *value = slurp_file(fnam, fd); return *value != NULL;
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel