Commit b35f7588 by Ryousei Takano Committed by Daniel Lezcano

Fix trivial stuff for mtu option setting

Hi Daniel, This patch removes unused variable 'strmtu' and fix an incorrect variable name. Signed-off-by: 's avatarRyousei Takano <takano-ryousei@aist.go.jp> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 1b36359d
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment