summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-04-03 23:49:27 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2006-04-03 23:49:27 -0400
commitcc7536722d24a3deec8ac51616e26f5dc267f112 (patch)
treea3c909386bf5d0075896f8e42d4d9fd4415b3d7c /linux/drivers/media/dvb
parente375e2853810cf2cc8f734369c90b7c007d72a3f (diff)
downloadmediapointer-dvb-s2-cc7536722d24a3deec8ac51616e26f5dc267f112.tar.gz
mediapointer-dvb-s2-cc7536722d24a3deec8ac51616e26f5dc267f112.tar.bz2
fix warning: assignment discards qualifiers from pointer target type
From: Michael Krufky <mkrufky@linuxtv.org> The following warning in all kernels < 2.6.17 is caused by changeset a875912f0aada25949e3201bcd97e177040fa782 : http://linuxtv.org/hg/v4l-dvb?cmd=changeset;node=a875912f0aad videodev.c: In function 'video_open': videodev.c:131: warning: assignment discards qualifiers from pointer target type videodev.c:136: warning: assignment discards qualifiers from pointer target type dvbdev.c: In function 'dvb_device_open': dvbdev.c:105: warning: assignment discards qualifiers from pointer target type This changeset restores backwards-compatability. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index 85d6a6c65..9b824c31b 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -93,7 +93,11 @@ static int dvb_device_open(struct inode *inode, struct file *file)
if (dvbdev && dvbdev->fops) {
int err = 0;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
const struct file_operations *old_fops;
+#else
+ struct file_operations *old_fops;
+#endif
file->private_data = dvbdev;
old_fops = file->f_op;