[PATCH xf86-video-trident 1/2] Use const char for xf86GetOptValString return type
Kevin Brace
kevinbrace at gmx.com
Mon Dec 17 22:15:57 UTC 2018
Apparently, xf86GetOptValString changed their return type from char
to const char between X Server 1.15 and 1.16. In particular, X Server
commit e1e01d2e33c632e395d7e396f73fba8ae606b15a made the change. This
commit will suppress the compilation warning.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
src/trident_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/trident_driver.c b/src/trident_driver.c
index 5771311..d958268 100644
--- a/src/trident_driver.c
+++ b/src/trident_driver.c
@@ -1010,7 +1010,7 @@ TRIDENTPreInit(ScrnInfoPtr pScrn, int flags)
ClockRangePtr clockRanges;
Bool ddcLoaded = FALSE;
xf86MonPtr pMon = NULL;
- char *s;
+ const char *s;
Bool tmp_bool;
/* Allocate the TRIDENTRec driverPrivate */
--
2.7.4
More information about the xorg-devel
mailing list