X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=15dd218f8c948537dccb114420a4a0eb0fa1db08;hb=10c471ab131bd766c9207e05e485fd2467ba7d5b;hp=5227b800fdbf000238d5457b03fb319bd8cd3573;hpb=d35aaf0256aa646af0f23035932271579ca65a3d;p=libsigrok.git diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 5227b800..15dd218f 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -253,7 +253,7 @@ static void thread_func(void *data) mydata->samples_counter += nb_to_send; g_io_channel_write_chars(channels[1], (gchar *)&buf, - nb_to_send, &bytes_written, NULL); + nb_to_send, (gsize *)&bytes_written, NULL); g_usleep(mydata->loop_sleep); } @@ -267,6 +267,7 @@ static int receive_data(int fd, int revents, void *user_data) uint64_t z; /* Avoid compiler warnings. */ + fd = fd; revents = revents; g_io_channel_read_chars(channels[0], (gchar *)&c, BUFSIZE, &z, NULL);