From 55b809ec450508d7fab23a7562bd1f0d1af9b6f5 Mon Sep 17 00:00:00 2001 From: Marcus Glocker Date: Tue, 29 Jul 2008 13:45:05 +0000 Subject: The stream header length and flags field are uint8_t not int. --- sys/dev/usb/uvideo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 @@ -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 */ -- cgit v1.2.3