[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181115223640.411-4-stephen@networkplumber.org>
Date: Thu, 15 Nov 2018 14:36:21 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH iproute2 03/22] lib/color: make local functions static
color_enable etc, only used here.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
include/color.h | 2 --
lib/color.c | 6 ++++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/color.h b/include/color.h
index e30f28c51c84..17ec56f3d7b4 100644
--- a/include/color.h
+++ b/include/color.h
@@ -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);
diff --git a/lib/color.c b/lib/color.c
index e5406294dfc4..59976847295c 100644
--- a/lib/color.c
+++ b/lib/color.c
@@ -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");
--
2.17.1
Powered by blists - more mailing lists