]> git.proxmox.com Git - fwupd.git/commitdiff
trivial: Fix warning: pointer parameter 'buf' can be pointer to const
authorRichard Hughes <richard@hughsie.com>
Sun, 12 Feb 2023 20:08:30 +0000 (20:08 +0000)
committerRichard Hughes <richard@hughsie.com>
Mon, 13 Feb 2023 12:34:46 +0000 (12:34 +0000)
plugins/genesys/fu-genesys-scaler-device.c

index 68f6e9a9c3a73c2e5f959b4f2abdaecb124167c4..b1dba36b4e3652cf76f19af60d24f3fdf607148d 100644 (file)
@@ -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;