[PATCH xf86-video-cirrus 2/3] Use const char for xf86GetOptValString return type

Kevin Brace kevinbrace at gmx.com
Tue Dec 25 14:39:26 UTC 2018


Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/alp_driver.c | 2 +-
 src/lg_driver.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/alp_driver.c b/src/alp_driver.c
index 60c5edd..c846909 100644
--- a/src/alp_driver.c
+++ b/src/alp_driver.c
@@ -456,7 +456,7 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags)
 	int i;
 	int depth_flags;
 	ClockRangePtr clockRanges;
-	char *s;
+	const char *s;
  	xf86Int10InfoPtr pInt = NULL;
 
 	if (flags & PROBE_DETECT)  {
diff --git a/src/lg_driver.c b/src/lg_driver.c
index c3fe142..eaba5f3 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -319,7 +319,7 @@ LgPreInit(ScrnInfoPtr pScrn, int flags)
 	int i;
 	ClockRangePtr clockRanges;
 	int fbPCIReg, ioPCIReg;
-	char *s;
+	const char *s;
 
 	if (flags & PROBE_DETECT)  {
 	  cirProbeDDC( pScrn, xf86GetEntityInfo(pScrn->entityList[0])->index );
-- 
2.7.4



More information about the xorg-devel mailing list