]> git.proxmox.com Git - mirror_lxc.git/commitdiff
coverity: fix mix of bool and int
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Dec 2013 19:47:24 +0000 (13:47 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Dec 2013 19:47:24 +0000 (13:47 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index be8b74d2bd96a656e737dcb77b6f6dd3b2e375a5..55ef2dba10d720df1a9086c7fe0f24a14eac8b4c 100644 (file)
@@ -1877,8 +1877,8 @@ static int lxc_rmdir_onedev_wrapper(void *data)
 static bool lxcapi_destroy(struct lxc_container *c)
 {
        struct bdev *r = NULL;
-       bool ret = false;
-       bool am_unpriv;
+       bool bret = false, am_unpriv;
+       int ret;
 
        if (!c || !lxcapi_is_defined(c))
                return false;
@@ -1924,11 +1924,11 @@ static bool lxcapi_destroy(struct lxc_container *c)
                ERROR("Error destroying container directory for %s", c->name);
                goto out;
        }
-       ret = true;
+       bret = true;
 
 out:
        container_disk_unlock(c);
-       return ret;
+       return bret;
 }
 
 static bool set_config_item_locked(struct lxc_container *c, const char *key, const char *v)