From: Wolfgang Bumiller Date: Fri, 5 Feb 2016 10:50:32 +0000 (+0100) Subject: bindings: return value type fixup X-Git-Tag: lxcfs-2.0.0.beta1~10 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e97c834b1ae0990d4ab3dc344a2a63b5ab65d5fa;p=mirror_lxcfs.git bindings: return value type fixup Signed-off-by: Wolfgang Bumiller Acked-by: Serge E. Hallyn --- diff --git a/bindings.c b/bindings.c index 4bb0631..5394b44 100644 --- a/bindings.c +++ b/bindings.c @@ -665,7 +665,7 @@ bool cgfs_list_children(const char *controller, const char *cgroup, char ***list (*list)[0] = NULL; if (!tmpc) - return NULL; + return false; /* basedir / tmpc / cgroup \0 */ len = strlen(basedir) + strlen(tmpc) + strlen(cgroup) + 3; @@ -815,7 +815,7 @@ bool cgfs_list_keys(const char *controller, const char *cgroup, struct cgfs_file *keys = NULL; if (!tmpc) - return NULL; + return false; /* basedir / tmpc / cgroup \0 */ len = strlen(basedir) + strlen(tmpc) + strlen(cgroup) + 3;