summaryrefslogtreecommitdiff
path: root/src/util/utilbitmap.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-01-20 22:29:10 -0500
committerAdam Jackson <ajax@redhat.com>2009-01-20 22:29:10 -0500
commit6ba0565362ba9c8d1037c0e4725cb31faa141656 (patch)
treeb3ec96b1bf66f2cc698c0b6427c7cf83a46f2c73 /src/util/utilbitmap.c
parent1247f01ee36f80222e30c1678f940329aadb8335 (diff)
const cleanup
Diffstat (limited to 'src/util/utilbitmap.c')
-rw-r--r--src/util/utilbitmap.c6
1 files changed, 2 insertions, 4 deletions
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];