Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2015 19:47:56 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r292790 - stable/10/sys/dev/vt/colors
Message-ID:  <201512271947.tBRJlu1O071701@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Dec 27 19:47:56 2015
New Revision: 292790
URL: https://svnweb.freebsd.org/changeset/base/292790

Log:
  MFC: r285912
  
  - Use __FBSDID().
  - Const'ify cons_to_vga_colors.
  - Fix line wrapping.

Modified:
  stable/10/sys/dev/vt/colors/vt_termcolors.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vt/colors/vt_termcolors.c
==============================================================================
--- stable/10/sys/dev/vt/colors/vt_termcolors.c	Sun Dec 27 19:37:47 2015	(r292789)
+++ stable/10/sys/dev/vt/colors/vt_termcolors.c	Sun Dec 27 19:47:56 2015	(r292790)
@@ -25,15 +25,16 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
- * $FreeBSD$
  */
 
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
 #include <sys/param.h>
 
 #include <dev/vt/colors/vt_termcolors.h>
 
-static struct {
+static const struct {
 	unsigned char r;	/* Red percentage value. */
 	unsigned char g;	/* Green percentage value. */
 	unsigned char b;	/* Blue percentage value. */
@@ -68,8 +69,8 @@ static const int cons_to_vga_colors[16] 
 };
 
 int
-vt_generate_cons_palette(uint32_t *palette, int format, uint32_t rmax, int roffset,
-    uint32_t gmax, int goffset, uint32_t bmax, int boffset)
+vt_generate_cons_palette(uint32_t *palette, int format, uint32_t rmax,
+    int roffset, uint32_t gmax, int goffset, uint32_t bmax, int boffset)
 {
 	int i;
 



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