]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
bindings: return value type fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 5 Feb 2016 10:50:32 +0000 (11:50 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 8 Feb 2016 17:14:42 +0000 (09:14 -0800)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
bindings.c

index 4bb0631d0b884ef25d7f9abb9595baca4a63a9db..5394b44aa21cb2687fde41b3769207e98bd94d94 100644 (file)
@@ -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;