Commit c2153a02 authored by Jean-Paul Saman's avatar Jean-Paul Saman

examples/dvbinfo/dvbinfo.c: Fix comparing signed with unsigned values.

parent ee0610c6
......@@ -184,7 +184,7 @@ static void *dvbinfo_capture(void *data)
if (buffer == NULL) /* out of memory */
break;
size_t size = param->pf_read(param->fd_in, buffer->p_data, buffer->i_size);
ssize_t size = param->pf_read(param->fd_in, buffer->p_data, buffer->i_size);
if (size < 0) /* short read ? */
{
fifo_push(capture->empty, buffer);
......@@ -196,7 +196,7 @@ static void *dvbinfo_capture(void *data)
b_eof = true;
continue;
}
assert(size == buffer->i_size);
buffer->i_date = mdate();
/* store buffer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment