Author: ed Date: Sun Jan 18 09:44:33 2009 New Revision: 187382 URL: http://svn.freebsd.org/changeset/base/187382
Log: Don't forget to mark the color translation array as const. Spotted by: Christoph Mallon <christoph mallon gmx de> Modified: head/sys/dev/syscons/teken/teken_subr_compat.h Modified: head/sys/dev/syscons/teken/teken_subr_compat.h ============================================================================== --- head/sys/dev/syscons/teken/teken_subr_compat.h Sun Jan 18 08:00:55 2009 (r187381) +++ head/sys/dev/syscons/teken/teken_subr_compat.h Sun Jan 18 09:44:33 2009 (r187382) @@ -33,8 +33,8 @@ teken_subr_cons25_set_cursor_type(teken_ 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) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"