[lxc-devel] [PATCH] Fix trivial stuff for mtu option setting

Ryousei Takano takano-ryousei at aist.go.jp
Wed Mar 25 15:57:12 UTC 2009


Hi Daniel,

This patch removes unused variable 'strmtu' and fix an incorrect variable name.

Signed-off-by: Ryousei Takano <takano-ryousei at aist.go.jp>
---
 src/lxc/lxc_conf.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/lxc/lxc_conf.c b/src/lxc/lxc_conf.c
index 058e1ad..f85e3ba 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)) {
-- 
1.5.6.3





More information about the lxc-devel mailing list