mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 22:16:25 +00:00
coverity: fix mix of bool and int
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
908fde6aad
commit
fef48dc942
@ -1877,8 +1877,8 @@ static int lxc_rmdir_onedev_wrapper(void *data)
|
|||||||
static bool lxcapi_destroy(struct lxc_container *c)
|
static bool lxcapi_destroy(struct lxc_container *c)
|
||||||
{
|
{
|
||||||
struct bdev *r = NULL;
|
struct bdev *r = NULL;
|
||||||
bool ret = false;
|
bool bret = false, am_unpriv;
|
||||||
bool am_unpriv;
|
int ret;
|
||||||
|
|
||||||
if (!c || !lxcapi_is_defined(c))
|
if (!c || !lxcapi_is_defined(c))
|
||||||
return false;
|
return false;
|
||||||
@ -1924,11 +1924,11 @@ static bool lxcapi_destroy(struct lxc_container *c)
|
|||||||
ERROR("Error destroying container directory for %s", c->name);
|
ERROR("Error destroying container directory for %s", c->name);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
ret = true;
|
bret = true;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
container_disk_unlock(c);
|
container_disk_unlock(c);
|
||||||
return ret;
|
return bret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool set_config_item_locked(struct lxc_container *c, const char *key, const char *v)
|
static bool set_config_item_locked(struct lxc_container *c, const char *key, const char *v)
|
||||||
|
Loading…
Reference in New Issue
Block a user