summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-07-29 13:45:05 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-07-29 13:45:05 +0000
commit55b809ec450508d7fab23a7562bd1f0d1af9b6f5 (patch)
tree0634441e90189e8bc83ccaf3b9ec53356ab16fff
parente537557552f7b1b43525cd67df64a5e81d650a8d (diff)
The stream header length and flags field are uint8_t not int.
-rw-r--r--sys/dev/usb/uvideo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index eb2807ed68c..b4f8e23dd94 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.64 2008/07/26 11:42:43 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.65 2008/07/29 13:45:04 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -1421,7 +1421,8 @@ uvideo_vs_decode_stream_header(struct uvideo_softc *sc, uint8_t *frame,
int frame_size)
{
struct uvideo_sample_buffer *fb = &sc->sc_sample_buffer;
- int header_len, header_flags, fragment_len;
+ uint8_t header_len, header_flags;
+ int fragment_len;
if (frame_size < 2)
/* frame too small to contain a valid stream header */