]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix trivial stuff for mtu option setting
authorRyousei Takano <takano-ryousei@aist.go.jp>
Wed, 25 Mar 2009 15:57:12 +0000 (00:57 +0900)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 25 Mar 2009 17:47:14 +0000 (18:47 +0100)
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>
src/lxc/lxc_conf.c

index 058e1ad254a5726a38016dc87418e2600a7b629f..f85e3ba5ffa5f90eb8e42af4d151c0806c608b77 100644 (file)
@@ -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)) {