mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Add static keywords to vidcontrol(1).
While there, remove the false optimisation of the colors array. It seems that changing it to an array of pointers instead of a 16x16 array does not cause any increase in binary size at all.
This commit is contained in:
parent
353705930f
commit
3be02c20ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228425
@ -63,7 +63,7 @@ static const char rcsid[] =
|
||||
/* Screen dump file format revision */
|
||||
#define DUMP_FMT_REV 1
|
||||
|
||||
char legal_colors[16][16] = {
|
||||
static const char *legal_colors[16] = {
|
||||
"black", "blue", "green", "cyan",
|
||||
"red", "magenta", "brown", "white",
|
||||
"grey", "lightblue", "lightgreen", "lightcyan",
|
||||
@ -78,18 +78,16 @@ struct {
|
||||
struct video_info video_mode_info;
|
||||
} cur_info;
|
||||
|
||||
int hex = 0;
|
||||
int number;
|
||||
int vesa_cols;
|
||||
int vesa_rows;
|
||||
int font_height;
|
||||
int colors_changed;
|
||||
int video_mode_changed;
|
||||
int normal_fore_color, normal_back_color;
|
||||
int revers_fore_color, revers_back_color;
|
||||
char letter;
|
||||
struct vid_info info;
|
||||
struct video_info new_mode_info;
|
||||
static int hex = 0;
|
||||
static int vesa_cols;
|
||||
static int vesa_rows;
|
||||
static int font_height;
|
||||
static int colors_changed;
|
||||
static int video_mode_changed;
|
||||
static int normal_fore_color, normal_back_color;
|
||||
static int revers_fore_color, revers_back_color;
|
||||
static struct vid_info info;
|
||||
static struct video_info new_mode_info;
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user