]> git.ipfire.org Git - thirdparty/lxc.git/commit
storage: treat return value from ops->destroy as int 2097/head
authorMichael McCracken <mikmccra@cisco.com>
Fri, 19 Jan 2018 16:38:36 +0000 (08:38 -0800)
committerMichael McCracken <mikmccra@cisco.com>
Fri, 19 Jan 2018 16:44:04 +0000 (08:44 -0800)
commited05aac829498161289d4f2da4002b42fb54bc32
tree7a8097ac0363d5a70e18aeb6b70e62c8ca2e1169
parent7c76f49546e053ee6fcaa2c7d45a8e7005328ed3
storage: treat return value from ops->destroy as int

r->ops->destroy() returns an int, -1 on error.
When assigned to a bool, this becomes true and hides errors.

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
src/lxc/storage/storage.c