Don't forget to mark the color translation array as const.

Spotted by:	Christoph Mallon <christoph mallon gmx de>
This commit is contained in:
Ed Schouten 2009-01-18 09:44:33 +00:00
parent 2dad52b0c5
commit fcf1ff110a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187382

View File

@ -33,8 +33,8 @@ teken_subr_cons25_set_cursor_type(teken_t *t, unsigned int type)
teken_funcs_param(t, TP_SHOWCURSOR, type != 1);
}
static teken_color_t cons25_colors[8] = { TC_BLACK, TC_BLUE, TC_GREEN,
TC_CYAN, TC_RED, TC_MAGENTA, TC_BROWN, TC_WHITE };
static const teken_color_t cons25_colors[8] = { TC_BLACK, TC_BLUE,
TC_GREEN, TC_CYAN, TC_RED, TC_MAGENTA, TC_BROWN, TC_WHITE };
static void
teken_subr_cons25_set_adapter_background(teken_t *t, unsigned int c)