[PATCH xf86-video-sis 4/4] Eliminate constant related compilation warnings for native functions
Kevin Brace
kevinbrace at gmx.com
Mon Dec 17 21:30:23 UTC 2018
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
src/sis_driver.c | 2 +-
src/sis_utility.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sis_driver.c b/src/sis_driver.c
index 8e86c06..8a62572 100644
--- a/src/sis_driver.c
+++ b/src/sis_driver.c
@@ -1305,7 +1305,7 @@ SiSCopyModeNLink(ScrnInfoPtr pScrn, DisplayModePtr dest,
* (Code base taken from mga driver)
*/
static DisplayModePtr
-SiSGetModeFromName(char* str, DisplayModePtr i)
+SiSGetModeFromName(const char* str, DisplayModePtr i)
{
DisplayModePtr c = i;
if(!i) return NULL;
diff --git a/src/sis_utility.c b/src/sis_utility.c
index 1617922..22f3d7e 100644
--- a/src/sis_utility.c
+++ b/src/sis_utility.c
@@ -850,7 +850,7 @@ SISGetMergedModeDetails(ScrnInfoPtr pScrn,
***********************************/
static void
-sisutil_prepare_string(xSiSCtrlCommandReply *sdcbuf, char *mystring)
+sisutil_prepare_string(xSiSCtrlCommandReply *sdcbuf, const char *mystring)
{
int slen = 0;
sdcbuf->sdc_buffer[0] = 0;
--
2.7.4
More information about the xorg-devel
mailing list