@@ -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);
@@ -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");
color_enable etc, only used here. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> --- include/color.h | 2 -- lib/color.c | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-)