]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: remove unused variable
authortomponline <tomp@tomp.uk>
Sat, 2 Mar 2019 10:11:51 +0000 (10:11 +0000)
committertomponline <tomp@tomp.uk>
Mon, 4 Mar 2019 07:59:33 +0000 (07:59 +0000)
Closes lxc#2885.

Signed-off-by: tomponline <tomp@tomp.uk>
src/lxc/attach.c

index 288458230feae03b197c132322e5bd8380d0b23a..f4e43e2b62d8d4e95e5da9dae05e105cf0e5688a 100644 (file)
@@ -159,7 +159,6 @@ static int in_same_namespace(pid_t pid1, pid_t pid2, const char *ns)
 {
        __do_close_prot_errno int ns_fd1 = -1, ns_fd2 = -1;
        int ret = -1;
-       int saved_errno;
        struct stat ns_st1, ns_st2;
 
        ns_fd1 = lxc_preserve_ns(pid1, ns);