diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 17:05:14 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 17:05:14 -0800 |
commit | d058d086c0be050db54b3a19a303b3c5442938f1 (patch) | |
tree | 534a11e8b688c737deea908ee21877a56a3131cc | |
parent | 4b097ae06ee8d260694f258af14c4c4f8480ad9c (diff) |
constify some argument declarations
Clears 16 of 17 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/s3v.h | 3 | ||||
-rw-r--r-- | src/s3v_accel.c | 2 | ||||
-rw-r--r-- | src/s3v_driver.c | 3 |
3 files changed, 5 insertions, 3 deletions
@@ -101,7 +101,8 @@ Bool S3V_I2CInit(ScrnInfoPtr pScrn); /******************* s3v_accel ****************************/ -void S3VGEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file); +void S3VGEReset(ScrnInfoPtr pScrn, int from_timeout, + int line, const char *file); /*********************************************/ diff --git a/src/s3v_accel.c b/src/s3v_accel.c index d22e5f0..4653339 100644 --- a/src/s3v_accel.c +++ b/src/s3v_accel.c @@ -280,7 +280,7 @@ S3VNopAllCmdSets(ScrnInfoPtr pScrn) } void -S3VGEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file) +S3VGEReset(ScrnInfoPtr pScrn, int from_timeout, int line, const char *file) { unsigned long gs1, gs2; /* -- debug info for graphics state -- */ unsigned char tmp, sr1, resetidx=0x66; /* FIXME */ diff --git a/src/s3v_driver.c b/src/s3v_driver.c index 5a8718a..913f6c5 100644 --- a/src/s3v_driver.c +++ b/src/s3v_driver.c @@ -314,7 +314,8 @@ s3virgeSetup(pointer module, pointer opts, int *errmaj, int *errmin) #endif /* XFree86LOADER */ -static unsigned char *find_bios_string(S3VPtr ps3v, int BIOSbase, char *match1, char *match2) +static unsigned char *find_bios_string(S3VPtr ps3v, int BIOSbase, + const char *match1, const char *match2) { #define BIOS_BSIZE 0x10000 #define BIOS_BASE 0xc0000 |