From 6ba0565362ba9c8d1037c0e4725cb31faa141656 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 20 Jan 2009 22:29:10 -0500 Subject: const cleanup --- src/util/utilbitmap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/util') diff --git a/src/util/utilbitmap.c b/src/util/utilbitmap.c index a817a4e..978db89 100644 --- a/src/util/utilbitmap.c +++ b/src/util/utilbitmap.c @@ -1,5 +1,3 @@ -/* $Xorg: utilbitmap.c,v 1.4 2001/02/09 02:04:04 xorgcvs Exp $ */ - /* Copyright 1990, 1994, 1998 The Open Group @@ -38,7 +36,7 @@ in this Software without prior written authorization from The Open Group. /* Utility functions for reformating font bitmaps */ -static unsigned char _reverse_byte[0x100] = { +static const unsigned char _reverse_byte[0x100] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, @@ -79,7 +77,7 @@ static unsigned char _reverse_byte[0x100] = { void BitOrderInvert(unsigned char *buf, int nbytes) { - unsigned char *rev = _reverse_byte; + const unsigned char *rev = _reverse_byte; for (; --nbytes >= 0; buf++) *buf = rev[*buf]; -- cgit v1.2.3