diff options
author | ed <ed@FreeBSD.org> | 2009-01-18 09:44:33 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-01-18 09:44:33 +0000 |
commit | 6fc1971988d00734e0f141e5e115d6c574052ea6 (patch) | |
tree | 486ffecaa910cbeb2c4042c8682adef9596a246d /sys/dev/syscons | |
parent | 7a8370bbd406c2fab69518dd16e49e72aa9089ce (diff) | |
download | FreeBSD-src-6fc1971988d00734e0f141e5e115d6c574052ea6.zip FreeBSD-src-6fc1971988d00734e0f141e5e115d6c574052ea6.tar.gz |
Don't forget to mark the color translation array as const.
Spotted by: Christoph Mallon <christoph mallon gmx de>
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r-- | sys/dev/syscons/teken/teken_subr_compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/teken/teken_subr_compat.h b/sys/dev/syscons/teken/teken_subr_compat.h index d524301..e49c1cd 100644 --- a/sys/dev/syscons/teken/teken_subr_compat.h +++ b/sys/dev/syscons/teken/teken_subr_compat.h @@ -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) |