mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00: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:
parent
0240fe9d58
commit
0d2c36fda9
@ -192,14 +192,12 @@ error_out:
|
||||
*/
|
||||
int moveInterfaceToNetNs(const char* interface, int pidInNs)
|
||||
{
|
||||
int rc;
|
||||
/* offset of the pid field in the following args */
|
||||
int rc = -1;
|
||||
char *pid = NULL;
|
||||
const char *argv[] = {
|
||||
"ip", "link", "set", interface, "netns", NULL, NULL
|
||||
};
|
||||
int cmdResult;
|
||||
int len;
|
||||
|
||||
if (NULL == interface) {
|
||||
goto error_out;
|
||||
|
Loading…
Reference in New Issue
Block a user