mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
[LXC] Remove unused variable and fix uninitialized variable
Also remove a stale comment in the area. This makes libvirt compile when passed --with-lxc and --enable-compiler-warnings=error
This commit is contained in:
@@ -192,14 +192,12 @@ error_out:
|
|||||||
*/
|
*/
|
||||||
int moveInterfaceToNetNs(const char* interface, int pidInNs)
|
int moveInterfaceToNetNs(const char* interface, int pidInNs)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc = -1;
|
||||||
/* offset of the pid field in the following args */
|
|
||||||
char *pid = NULL;
|
char *pid = NULL;
|
||||||
const char *argv[] = {
|
const char *argv[] = {
|
||||||
"ip", "link", "set", interface, "netns", NULL, NULL
|
"ip", "link", "set", interface, "netns", NULL, NULL
|
||||||
};
|
};
|
||||||
int cmdResult;
|
int cmdResult;
|
||||||
int len;
|
|
||||||
|
|
||||||
if (NULL == interface) {
|
if (NULL == interface) {
|
||||||
goto error_out;
|
goto error_out;
|
||||||
|
|||||||
Reference in New Issue
Block a user