aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmi-device.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-05-18 17:48:32 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-03 16:08:52 +0200
commit512a553325cf71759d9f6cae3d56b8a80b18ce1d (patch)
treec6d2d0f62871558fc93a8f30824c3b4d4b9f8e6d /src/qmi-device.c
parentcd4acbfe4525764893741ec38c65f4261ca3c368 (diff)
downloadexternal_libqmi-512a553325cf71759d9f6cae3d56b8a80b18ce1d.zip
external_libqmi-512a553325cf71759d9f6cae3d56b8a80b18ce1d.tar.gz
external_libqmi-512a553325cf71759d9f6cae3d56b8a80b18ce1d.tar.bz2
device: fix warning, let the buffer be a gchar buffer
Diffstat (limited to 'src/qmi-device.c')
-rw-r--r--src/qmi-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmi-device.c b/src/qmi-device.c
index 9791767..ed15cc5 100644
--- a/src/qmi-device.c
+++ b/src/qmi-device.c
@@ -896,7 +896,7 @@ data_available (GIOChannel *source,
{
gsize bytes_read;
GIOStatus status;
- guint8 buffer[BUFFER_SIZE + 1];
+ gchar buffer[BUFFER_SIZE + 1];
if (condition & G_IO_HUP) {
g_debug ("[%s] unexpected port hangup!",
@@ -945,7 +945,7 @@ data_available (GIOChannel *source,
break;
if (bytes_read > 0)
- g_byte_array_append (self->priv->response, buffer, bytes_read);
+ g_byte_array_append (self->priv->response, (const guint8 *)buffer, bytes_read);
/* Try to parse what we already got */
parse_response (self);