]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
lib/color: make local functions static
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Nov 2018 22:36:21 +0000 (14:36 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 19 Nov 2018 19:42:44 +0000 (11:42 -0800)
color_enable etc, only used here.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/color.h
lib/color.c

index e30f28c51c844a951bc202507a84ae0f9df80c34..17ec56f3d7b4716ad085fb46a66aa13c66106480 100644 (file)
@@ -20,10 +20,8 @@ enum color_opt {
        COLOR_OPT_ALWAYS = 2
 };
 
-void enable_color(void);
 bool check_enable_color(int color, int json);
 bool matches_color(const char *arg, int *val);
-void set_color_palette(void);
 int color_fprintf(FILE *fp, enum color_attr attr, const char *fmt, ...);
 enum color_attr ifa_family_color(__u8 ifa_family);
 enum color_attr oper_state_color(__u8 state);
index e5406294dfc4bafe5b7a4083c25e17e7cbd21b3c..59976847295c5927816d525fefe6efdfbd4bc2de 100644 (file)
@@ -11,6 +11,8 @@
 #include "color.h"
 #include "utils.h"
 
+static void set_color_palette(void);
+
 enum color {
        C_RED,
        C_GREEN,
@@ -73,7 +75,7 @@ static enum color attr_colors_dark[] = {
 static int is_dark_bg;
 static int color_is_enabled;
 
-void enable_color(void)
+static void enable_color(void)
 {
        color_is_enabled = 1;
        set_color_palette();
@@ -117,7 +119,7 @@ bool matches_color(const char *arg, int *val)
        return true;
 }
 
-void set_color_palette(void)
+static void set_color_palette(void)
 {
        char *p = getenv("COLORFGBG");