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:
Ryousei Takano 2009-03-26 00:57:12 +09:00 committed by Daniel Lezcano
parent 1b36359d9b
commit b35f75882e

View File

@ -1421,7 +1421,7 @@ static int instanciate_veth(const char *directory, const char *file, pid_t pid)
} }
if (device_set_mtu(veth2, mtu)) { 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; 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 path[MAXPATHLEN], *strindex = NULL, *peer = NULL;
char link[IFNAMSIZ]; char link[IFNAMSIZ];
char strmtu[MAXMTULEN];
int ifindex, ret = -1; int ifindex, ret = -1;
if (!asprintf(&peer, "%s~%d", file, pid)) { if (!asprintf(&peer, "%s~%d", file, pid)) {