]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/ipnetns.c
Make tc and ip batch mode consistent
[mirror_iproute2.git] / ip / ipnetns.c
index 5b911f76d18e404aa5394fcfe741521afd820620..794a4988084274f339b7e98d58432938ac868734 100644 (file)
@@ -42,8 +42,6 @@
 #define MS_SHARED      (1 << 20)
 #endif
 
-extern char *batch_file;
-
 #ifndef HAVE_SETNS
 static int setns(int fd, int nstype)
 {
@@ -190,7 +188,7 @@ static int netns_exec(int argc, char **argv)
 
        fflush(stdout);
 
-       if (batch_file) {
+       if (batch_mode) {
                int status;
                pid_t pid;