From 6a9c91a0839012e57e69e45f4cb6d8a7d07080d5 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 17 Jan 2017 15:37:08 +0000 Subject: [PATCH] trivial: Fix a trivial warning in the altos plugin --- plugins/altos/fu-device-altos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/altos/fu-device-altos.c b/plugins/altos/fu-device-altos.c index 0e33e6506..d5de206b5 100644 --- a/plugins/altos/fu-device-altos.c +++ b/plugins/altos/fu-device-altos.c @@ -286,7 +286,7 @@ fu_device_altos_tty_read (FuDeviceAltos *device, } if (len > 0) { g_debug ("read %" G_GSSIZE_FORMAT " bytes from device", len); - g_string_append_len (str, buf, len); + g_string_append_len (str, (gchar *) buf, len); } /* check maximum size */ @@ -425,7 +425,7 @@ fu_device_altos_write_page (FuDeviceAltos *device, g_autofree gchar *cmd = g_strdup_printf ("W %x\n", address); if (!fu_device_altos_tty_write (device, cmd, -1, error)) return FALSE; - if (!fu_device_altos_tty_write (device, data, data_len, error)) + if (!fu_device_altos_tty_write (device, (const gchar *) data, data_len, error)) return FALSE; return TRUE; }