summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@umwelt.(none)>2006-08-04 16:30:25 -0700
committerIan Romanick <idr@umwelt.(none)>2006-08-04 16:30:25 -0700
commit3a7f84ac41e93a9395891913cec1c5acb30937d0 (patch)
tree9a592acdf8552af609c1b0819046ac76c554c6fc
parent2f8352df6488476b0c1a46798eca5dd38827444b (diff)
Make a couple local, static arrays const. The RamSavage4 array is not
const because it can be modified for some quirky cards. Neat!
-rw-r--r--src/savage_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 422bcfd..9d89fa2 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -1693,10 +1693,10 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
/* Compute the amount of video memory and offscreen memory. */
if (!pScrn->videoRam) {
- static unsigned char RamSavage3D[] = { 8, 4, 4, 2 };
+ static const unsigned char RamSavage3D[] = { 8, 4, 4, 2 };
static unsigned char RamSavage4[] = { 2, 4, 8, 12, 16, 32, 64, 32 };
- static unsigned char RamSavageMX[] = { 2, 8, 4, 16, 8, 16, 4, 16 };
- static unsigned char RamSavageNB[] = { 0, 2, 4, 8, 16, 32, 16, 2 };
+ static const unsigned char RamSavageMX[] = { 2, 8, 4, 16, 8, 16, 4, 16 };
+ static const unsigned char RamSavageNB[] = { 0, 2, 4, 8, 16, 32, 16, 2 };
switch( psav->Chipset ) {
case S3_SAVAGE3D: