trivial: Fix some -Wdiscarded-qualifiers warnings

This commit is contained in:
Richard Hughes 2017-02-13 11:02:19 +00:00
parent 2613dcc3b8
commit 31c36cd2b6
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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;