mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 07:13:42 +00:00
Fix trivial stuff for mtu option setting
Hi Daniel, This patch removes unused variable 'strmtu' and fix an incorrect variable name. Signed-off-by: Ryousei Takano <takano-ryousei@aist.go.jp> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
1b36359d9b
commit
b35f75882e
@ -1421,7 +1421,7 @@ static int instanciate_veth(const char *directory, const char *file, pid_t pid)
|
||||
}
|
||||
|
||||
if (device_set_mtu(veth2, mtu)) {
|
||||
lxc_log_error("failed to set mtu for '%s'", veth1);
|
||||
lxc_log_error("failed to set mtu for '%s'", veth2);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
@ -1445,7 +1445,6 @@ static int instanciate_macvlan(const char *directory, const char *file, pid_t pi
|
||||
{
|
||||
char path[MAXPATHLEN], *strindex = NULL, *peer = NULL;
|
||||
char link[IFNAMSIZ];
|
||||
char strmtu[MAXMTULEN];
|
||||
int ifindex, ret = -1;
|
||||
|
||||
if (!asprintf(&peer, "%s~%d", file, pid)) {
|
||||
|
Loading…
Reference in New Issue
Block a user