[PATCH xf86-video-i128] Use const char for xf86GetOptValString return type
Kevin Brace
kevinbrace at gmx.com
Fri Dec 7 23:13:43 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/i128_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/i128_driver.c b/src/i128_driver.c
index 14bf264..c28d98b 100644
--- a/src/i128_driver.c
+++ b/src/i128_driver.c
@@ -580,7 +580,7 @@ I128PreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "Acceleration disabled\n");
} else {
int from = X_DEFAULT;
- char *s = xf86GetOptValString(pI128->Options, OPTION_ACCELMETHOD);
+ const char *s = xf86GetOptValString(pI128->Options, OPTION_ACCELMETHOD);
pI128->NoAccel = FALSE;
if (!xf86NameCmp(s, "EXA")) {
pI128->exa = TRUE;
--
2.7.4
More information about the xorg-devel
mailing list