diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-05-18 17:48:32 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-03 16:08:52 +0200 |
commit | 512a553325cf71759d9f6cae3d56b8a80b18ce1d (patch) | |
tree | c6d2d0f62871558fc93a8f30824c3b4d4b9f8e6d /src/qmi-device.c | |
parent | cd4acbfe4525764893741ec38c65f4261ca3c368 (diff) | |
download | external_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.c | 4 |
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); |