Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Andreas_Schwab:Factory
lxc
0023-tools-use-boolean-for-ret-in-lxc_device.c....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0023-tools-use-boolean-for-ret-in-lxc_device.c.patch of Package lxc
From 599a84d5aa0798ff6aa896806829aa28351a5aff Mon Sep 17 00:00:00 2001 From: Christian Brauner <cbrauner@suse.de> Date: Fri, 26 Aug 2016 12:49:23 +0200 Subject: [PATCH 23/27] tools: use boolean for ret in lxc_device.c Signed-off-by: Christian Brauner <cbrauner@suse.de> --- src/lxc/tools/lxc_device.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lxc/tools/lxc_device.c b/src/lxc/tools/lxc_device.c index abf52b9..39c560c 100644 --- a/src/lxc/tools/lxc_device.c +++ b/src/lxc/tools/lxc_device.c @@ -102,7 +102,7 @@ int main(int argc, char *argv[]) { struct lxc_container *c; char *cmd, *dev_name, *dst_name; - int ret = 1; + bool ret = false; if (geteuid() != 0) { ERROR("%s must be run as root", argv[0]); @@ -164,7 +164,6 @@ int main(int argc, char *argv[]) } if (ret != true) { ERROR("Failed to add %s to %s.", dev_name, c->name); - ret = 1; goto err1; } INFO("Add %s to %s.", dev_name, c->name); @@ -176,7 +175,6 @@ int main(int argc, char *argv[]) } if (ret != true) { ERROR("Failed to del %s from %s.", dev_name, c->name); - ret = 1; goto err1; } INFO("Delete %s from %s.", dev_name, c->name); -- 2.9.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor