summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2004-08-03 09:38:03 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2004-08-03 09:38:03 +0000
commitfd440a1e2110e05d116207800c123c281fbf5e19 (patch)
tree0c1fa2d92f48b58e4406401be79758233011db6b
parentdd0f86c4cb046c79a65144f767e97fd99e7f61c9 (diff)
programs/Xserver/hw/xfree86/drivers/ati/r128_driver.c
programs/Xserver/hw/xfree86/drivers/ati/r128_probe.h programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c programs/Xserver/hw/xfree86/drivers/ati/radeon_probe.h Fix Constification problems.
-rw-r--r--src/r128_driver.c2
-rw-r--r--src/r128_probe.h2
-rw-r--r--src/radeon_driver.c2
-rw-r--r--src/radeon_probe.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c
index 21f5d9de..1d7f7dcb 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -165,7 +165,7 @@ static const OptionInfoRec R128Options[] = {
{ -1, NULL, OPTV_NONE, {0}, FALSE }
};
-OptionInfoRec *R128OptionsWeak(void) { return R128Options; }
+const OptionInfoRec *R128OptionsWeak(void) { return R128Options; }
R128RAMRec R128RAM[] = { /* Memory Specifications
From RAGE 128 Software Development
diff --git a/src/r128_probe.h b/src/r128_probe.h
index aa4c547f..38d585dd 100644
--- a/src/r128_probe.h
+++ b/src/r128_probe.h
@@ -73,7 +73,7 @@ extern ModeStatus R128ValidMode
FunctionPrototype((int, DisplayModePtr, Bool,
int));
-extern OptionInfoRec * R128OptionsWeak
+extern const OptionInfoRec * R128OptionsWeak
FunctionPrototype((void));
extern void R128FillInScreenInfo
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index b2cd9866..f4fdae10 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -210,7 +210,7 @@ static const OptionInfoRec RADEONOptions[] = {
{ -1, NULL, OPTV_NONE, {0}, FALSE }
};
-OptionInfoRec *RADEONOptionsWeak(void) { return RADEONOptions; }
+const OptionInfoRec *RADEONOptionsWeak(void) { return RADEONOptions; }
static const char *vgahwSymbols[] = {
"vgaHWFreeHWRec",
diff --git a/src/radeon_probe.h b/src/radeon_probe.h
index 1cb38d15..a104cbc9 100644
--- a/src/radeon_probe.h
+++ b/src/radeon_probe.h
@@ -175,7 +175,7 @@ extern ModeStatus RADEONValidMode
FunctionPrototype((int, DisplayModePtr, Bool,
int));
-extern OptionInfoRec * RADEONOptionsWeak
+extern const OptionInfoRec *RADEONOptionsWeak
FunctionPrototype((void));
extern void RADEONFillInScreenInfo