mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-04 16:16:39 +00:00
lib/color: make local functions static
color_enable etc, only used here. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
b8795a3208
commit
f7bf88dfd5
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user