summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-08 14:05:42 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-08 14:05:42 -0800
commit57cfa71b2ca68a705c665c6b0ee920690b8eccb3 (patch)
tree6722dda0816ac2279508e39f618232d481f7296e
parent52db99b4d88c7dfdfa813bbeefd17f3c6f5751d9 (diff)
Fix 4 -Wdiscarded-qualifiers warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/nv_driver.c2
-rw-r--r--src/riva_driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 99b2990..070ec4c 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1295,7 +1295,7 @@ nvProbeDDC(ScrnInfoPtr pScrn, int index)
Bool NVI2CInit(ScrnInfoPtr pScrn)
{
- char *mod = "i2c";
+ const char *mod = "i2c";
if (xf86LoadSubModule(pScrn, mod)) {
diff --git a/src/riva_driver.c b/src/riva_driver.c
index 501266f..232568c 100644
--- a/src/riva_driver.c
+++ b/src/riva_driver.c
@@ -316,7 +316,7 @@ rivaProbeDDC(ScrnInfoPtr pScrn, int index)
Bool RivaI2CInit(ScrnInfoPtr pScrn)
{
- char *mod = "i2c";
+ const char *mod = "i2c";
if (xf86LoadSubModule(pScrn, mod)) {