mirror of
https://git.proxmox.com/git/fwupd
synced 2026-01-27 20:52:03 +00:00
trivial: Fix some -Wdiscarded-qualifiers warnings
This commit is contained in:
parent
2613dcc3b8
commit
31c36cd2b6
@ -57,7 +57,7 @@ synapticsmst_common_aux_node_read (SynapticsMSTConnection *connection,
|
||||
|
||||
static guint8
|
||||
synapticsmst_common_aux_node_write (SynapticsMSTConnection *connection,
|
||||
gint offset, gint *buf, gint length)
|
||||
gint offset, const gint *buf, gint length)
|
||||
{
|
||||
if (lseek (connection->fd, offset, SEEK_SET) != offset)
|
||||
return DPCD_SEEK_FAIL;
|
||||
@ -106,7 +106,7 @@ synapticsmst_common_read_dpcd (SynapticsMSTConnection *connection,
|
||||
guint8
|
||||
synapticsmst_common_write_dpcd (SynapticsMSTConnection *connection,
|
||||
gint offset,
|
||||
gint *buf,
|
||||
const gint *buf,
|
||||
gint length)
|
||||
{
|
||||
if (connection->layer && connection->remain_layer) {
|
||||
@ -128,7 +128,7 @@ synapticsmst_common_rc_set_command (SynapticsMSTConnection *connection,
|
||||
gint rc_cmd,
|
||||
gint length,
|
||||
gint offset,
|
||||
guint8 *buf)
|
||||
const guint8 *buf)
|
||||
{
|
||||
guint8 rc = 0;
|
||||
gint cur_offset = offset;
|
||||
|
||||
@ -91,14 +91,14 @@ guint8 synapticsmst_common_read_dpcd (SynapticsMSTConnection *connection,
|
||||
|
||||
guint8 synapticsmst_common_write_dpcd (SynapticsMSTConnection *connection,
|
||||
gint offset,
|
||||
gint *buf,
|
||||
const gint *buf,
|
||||
gint length);
|
||||
|
||||
guint8 synapticsmst_common_rc_set_command (SynapticsMSTConnection *connection,
|
||||
gint rc_cmd,
|
||||
gint length,
|
||||
gint offset,
|
||||
guint8 *buf);
|
||||
const guint8 *buf);
|
||||
|
||||
guint8 synapticsmst_common_rc_get_command (SynapticsMSTConnection *connection,
|
||||
gint rc_cmd,
|
||||
|
||||
@ -410,7 +410,7 @@ fu_plugin_thunderbolt_uevent_cb (GUdevClient *gudev_client,
|
||||
devpath = fu_plugin_thunderbolt_find_devpath (plugin, udev_device);
|
||||
if (devpath != NULL) {
|
||||
g_debug ("potentially removing tbt device");
|
||||
g_ptr_array_remove (data->devpaths, devpath);
|
||||
g_ptr_array_remove (data->devpaths, (gpointer) devpath);
|
||||
fu_plugin_thunderbolt_schedule_rescan (plugin);
|
||||
}
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user