From: Uwe Hermann Date: Mon, 17 Jan 2011 23:08:11 +0000 (+0100) Subject: Fix compiler warning. X-Git-Tag: libsigrok-0.1.0~406 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=01bd1ed396f33efc7126703210f44c4b5730d064;p=libsigrok.git Fix compiler warning. --- diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index f1580a7d..ec8a74bc 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -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;