From: Ryousei Takano Date: Wed, 25 Mar 2009 15:57:12 +0000 (+0900) Subject: Fix trivial stuff for mtu option setting X-Git-Tag: lxc_0_6_2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b35f75882eed5fc40e0a0fb2ae2aeaf66c11df0e;p=thirdparty%2Flxc.git 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 Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/lxc_conf.c b/src/lxc/lxc_conf.c index 058e1ad25..f85e3ba5f 100644 --- a/src/lxc/lxc_conf.c +++ b/src/lxc/lxc_conf.c @@ -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)) {