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) ...@@ -184,7 +184,7 @@ static void *dvbinfo_capture(void *data)
if (buffer == NULL) /* out of memory */ if (buffer == NULL) /* out of memory */
break; 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 ? */ if (size < 0) /* short read ? */
{ {
fifo_push(capture->empty, buffer); fifo_push(capture->empty, buffer);
...@@ -196,7 +196,7 @@ static void *dvbinfo_capture(void *data) ...@@ -196,7 +196,7 @@ static void *dvbinfo_capture(void *data)
b_eof = true; b_eof = true;
continue; continue;
} }
assert(size == buffer->i_size);
buffer->i_date = mdate(); buffer->i_date = mdate();
/* store buffer */ /* 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