summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib
diff options
context:
space:
mode:
authorhans@localhost.localdomain <hans@localhost.localdomain>2008-08-26 18:11:09 +0200
committerhans@localhost.localdomain <hans@localhost.localdomain>2008-08-26 18:11:09 +0200
commit5bbdc31c65b0843fd17e1d0c13827d9d7ef9c22b (patch)
treed01f974784c2f27283e46cf5990cb354a4a582d7 /v4l2-apps/lib
parentd8b389356c9965565035d1e7a3c400b5aa46c7aa (diff)
downloadmediapointer-dvb-s2-5bbdc31c65b0843fd17e1d0c13827d9d7ef9c22b.tar.gz
mediapointer-dvb-s2-5bbdc31c65b0843fd17e1d0c13827d9d7ef9c22b.tar.bz2
libv4l: fix a few compile warnings
From: Hans de Goede <j.w.r.degoede@hhs.nl> libv4l: fix a few compile warnings Priority: normal Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Diffstat (limited to 'v4l2-apps/lib')
-rw-r--r--v4l2-apps/lib/libv4l/libv4l2/libv4l2.c2
-rw-r--r--v4l2-apps/lib/libv4l/libv4lconvert/tinyjpeg.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4l2/libv4l2.c b/v4l2-apps/lib/libv4l/libv4l2/libv4l2.c
index 408f27398..7029f69c3 100644
--- a/v4l2-apps/lib/libv4l/libv4l2/libv4l2.c
+++ b/v4l2-apps/lib/libv4l/libv4l2/libv4l2.c
@@ -922,7 +922,7 @@ int v4l2_ioctl (int fd, unsigned long int request, ...)
ssize_t v4l2_read (int fd, void* dest, size_t n)
{
ssize_t result;
- int index, bytesused = 0, frame_index;
+ int index;
struct v4l2_buffer buf;
if ((index = v4l2_get_index(fd)) == -1)
diff --git a/v4l2-apps/lib/libv4l/libv4lconvert/tinyjpeg.c b/v4l2-apps/lib/libv4l/libv4lconvert/tinyjpeg.c
index 7f5b002b6..fc9efbeb2 100644
--- a/v4l2-apps/lib/libv4l/libv4lconvert/tinyjpeg.c
+++ b/v4l2-apps/lib/libv4l/libv4lconvert/tinyjpeg.c
@@ -437,7 +437,6 @@ static int pixart_get_next_huffman_code(struct jdec_private *priv,
int value, hcode;
unsigned int extra_nbits, nbits;
uint16_t *slowtable;
- int i;
pixart_look_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, HUFFMAN_HASH_NBITS, hcode);
value = huffman_table->lookup[hcode];