diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 17:29:31 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 17:29:31 -0800 |
commit | e9ed4a875524c7d0876612e561ee9868da5a01d3 (patch) | |
tree | 950e7aad307a23539f365e4dffdcaaac2532b87a | |
parent | 7133cd19ec1dad028303b2c3c829998152c0ba1a (diff) |
constify some char * declarations
Clears 8 of 15 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/savage_driver.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c index 9692974..c473275 100644 --- a/src/savage_driver.c +++ b/src/savage_driver.c @@ -120,7 +120,8 @@ static void SavageCalcClock(long freq, int min_m, int min_n1, int max_n1, int min_n2, int max_n2, long freq_min, long freq_max, unsigned int *mdiv, unsigned int *ndiv, unsigned int *r); -void SavageGEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file); +void SavageGEReset(ScrnInfoPtr pScrn, int from_timeout, + int line, const char *file); void SavagePrintRegs(ScrnInfoPtr pScrn); static void SavageDPMS(ScrnInfoPtr pScrn, int mode, int flags); static Bool SavageDDC1(ScrnInfoPtr pScrn); @@ -978,7 +979,7 @@ static void SavageGetPanelInfo(ScrnInfoPtr pScrn) vgaHWPtr hwp; unsigned char cr6b; int panelX, panelY; - char * sTechnology = "Unknown"; + const char *sTechnology = "Unknown"; enum ACTIVE_DISPLAYS { /* These are the bits in CR6B */ ActiveCRT = 0x01, ActiveLCD = 0x02, @@ -2148,7 +2149,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) } if( !psav->NoAccel ) { - char *modName = NULL; + const char *modName = NULL; if (psav->useEXA) { modName = "exa"; @@ -4372,7 +4373,8 @@ static void SavageCalcClock(long freq, int min_m, int min_n1, int max_n1, } -void SavageGEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file) +void SavageGEReset(ScrnInfoPtr pScrn, int from_timeout, + int line, const char *file) { unsigned char cr66; int r, success = 0; |