From 2950f5fa3bc5e691705113fe969fb6bf87441e0d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sun, 12 Feb 2023 20:08:30 +0000 Subject: [PATCH] trivial: Fix warning: pointer parameter 'buf' can be pointer to const --- plugins/genesys/fu-genesys-scaler-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genesys/fu-genesys-scaler-device.c b/plugins/genesys/fu-genesys-scaler-device.c index 68f6e9a9c..b1dba36b4 100644 --- a/plugins/genesys/fu-genesys-scaler-device.c +++ b/plugins/genesys/fu-genesys-scaler-device.c @@ -1421,7 +1421,7 @@ fu_genesys_scaler_device_write_flash(FuGenesysScalerDevice *self, } static guint8 -fu_genesys_scaler_device_calculate_checksum(guint8 *buf, gsize bufsz) +fu_genesys_scaler_device_calculate_checksum(const guint8 *buf, gsize bufsz) { guint8 checksum = 0x00; -- 2.39.5