From d8925febf642ff41cf254895a5b3a891d35d472d Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 21 Jul 2025 17:00:43 +0200 Subject: [PATCH] xfree86: fix xf86I2CBusInit() prototype name parameter should be const char * Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/i2c/xf86i2c.c | 2 +- hw/xfree86/i2c/xf86i2c.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index e1e06e19e5..c70aaf1ac4 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -769,7 +769,7 @@ xf86I2CBusInit(I2CBusPtr b) } I2CBusPtr -xf86I2CFindBus(int scrnIndex, char *name) +xf86I2CFindBus(int scrnIndex, const char *name) { I2CBusPtr p; diff --git a/hw/xfree86/i2c/xf86i2c.h b/hw/xfree86/i2c/xf86i2c.h index 7a9b12f309..edc5f02cfc 100644 --- a/hw/xfree86/i2c/xf86i2c.h +++ b/hw/xfree86/i2c/xf86i2c.h @@ -59,7 +59,7 @@ extern _X_EXPORT void xf86DestroyI2CBusRec(I2CBusPtr pI2CBus, Bool unalloc, #define I2CBusInit xf86I2CBusInit extern _X_EXPORT Bool xf86I2CBusInit(I2CBusPtr pI2CBus); -extern _X_EXPORT I2CBusPtr xf86I2CFindBus(int scrnIndex, char *name); +extern _X_EXPORT I2CBusPtr xf86I2CFindBus(int scrnIndex, const char *name); extern _X_EXPORT int xf86I2CGetScreenBuses(int scrnIndex, I2CBusPtr ** pppI2CBus);