Skip to content

Commit

Permalink
coverity: fix mix of bool and int
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
hallyn committed Dec 12, 2013
1 parent 908fde6 commit fef48dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lxc/lxccontainer.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fef48dc

Please sign in to comment.