]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: make local variables static
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Nov 2018 22:36:25 +0000 (14:36 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 19 Nov 2018 19:42:44 +0000 (11:42 -0800)
enable_color and set_color_palette only used here.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
bridge/bridge.c
bridge/monitor.c

index ac4d6a14f510ea7ebd71321c7c3c4bb6070417ac..389f1bd5382b392224d2a1a0b670c5bfff67d8e6 100644 (file)
@@ -23,12 +23,11 @@ int preferred_family = AF_UNSPEC;
 int oneline;
 int show_stats;
 int show_details;
-int show_pretty;
-int color;
+static int color;
 int compress_vlans;
 int json;
 int timestamp;
-char *batch_file;
+static const char *batch_file;
 int force;
 
 static void usage(void) __attribute__((noreturn));
index 82bc6b407a06f022bcb5249e2cf7ee74242cfd30..708a1bd2ccb08c72abc704b0d3f885b0207ac615 100644 (file)
@@ -27,7 +27,7 @@
 
 
 static void usage(void) __attribute__((noreturn));
-int prefix_banner;
+static int prefix_banner;
 
 static void usage(void)
 {