From ba6785a02eea543976b0e44df844a43b660eaa64 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Sat, 8 Oct 2005 17:14:25 +0000 Subject: VIDIOCSFREQ and VIDIOCGFREQ expect an unsigned long as argument. v4l1-compat.c expects an int. The first is 8 bytes for an AMD64, the second only 4. This patch fixes this. I've checked other sources in the v4l repository and they all use unsigned long, so this is the only place that needs patching. Signed-off-by: Hans Verkuil Signed-off-by: Michael Krufky --- linux/drivers/media/video/v4l1-compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux/drivers/media') diff --git a/linux/drivers/media/video/v4l1-compat.c b/linux/drivers/media/video/v4l1-compat.c index f911c767b..be0220f2b 100644 --- a/linux/drivers/media/video/v4l1-compat.c +++ b/linux/drivers/media/video/v4l1-compat.c @@ -1,5 +1,5 @@ /* - * $Id: v4l1-compat.c,v 1.11 2005/07/13 17:25:25 mchehab Exp $ + * $Id: v4l1-compat.c,v 1.12 2005/10/08 17:14:25 mkrufky Exp $ * * Video for Linux Two * Backward Compatibility Layer @@ -730,7 +730,7 @@ v4l_compat_translate_ioctl(struct inode *inode, } case VIDIOCGFREQ: /* get frequency */ { - int *freq = arg; + unsigned long *freq = arg; freq2.tuner = 0; err = drv(inode, file, VIDIOC_G_FREQUENCY, &freq2); @@ -742,7 +742,7 @@ v4l_compat_translate_ioctl(struct inode *inode, } case VIDIOCSFREQ: /* set frequency */ { - int *freq = arg; + unsigned long *freq = arg; freq2.tuner = 0; drv(inode, file, VIDIOC_G_FREQUENCY, &freq2); -- cgit v1.2.3