]> sigrok.org Git - libsigrok.git/commitdiff
Fix compiler warning.
authorUwe Hermann <redacted>
Mon, 17 Jan 2011 23:08:11 +0000 (00:08 +0100)
committerUwe Hermann <redacted>
Tue, 18 Jan 2011 23:46:54 +0000 (00:46 +0100)
hardware/demo/demo.c

index f1580a7dfc36f808ffa49d6053c041bb8a082c8e..ec8a74bc3f5c225a64fe55e5e5c8e77ef270804f 100644 (file)
@@ -283,7 +283,8 @@ static int receive_data(int fd, int revents, void *user_data)
        fd = fd;
        revents = revents;
 
-       g_io_channel_read_chars(channels[0], (gchar *)&c, BUFSIZE, &z, NULL);
+       g_io_channel_read_chars(channels[0], (gchar *)&c, BUFSIZE,
+                               (gsize *)&z, NULL);
 
        if (z > 0) {
                packet.type = DF_LOGIC;