Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 09:44:33 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187382 - head/sys/dev/syscons/teken
Message-ID:  <200901180944.n0I9iXOC067554@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901180944.n0I9iXOC067554>