From 57cfa71b2ca68a705c665c6b0ee920690b8eccb3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 8 Jan 2024 14:05:42 -0800 Subject: Fix 4 -Wdiscarded-qualifiers warnings Signed-off-by: Alan Coopersmith --- src/nv_driver.c | 2 +- src/riva_driver.c | 2 +- 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)) { -- cgit v1.2.3