diff options
author | Michael Hunold <devnull@localhost> | 2003-09-10 11:05:57 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-09-10 11:05:57 +0000 |
commit | 04a62017bc61cc65ab5f408a69b4f5a6edece8d0 (patch) | |
tree | a0e1aa452e6157bd7af1e3606927a1c48ef9c704 /linux/drivers/media/dvb/dvb-core | |
parent | 83dd624930fecb0790451f79f90e4471772acc69 (diff) | |
download | mediapointer-dvb-s2-04a62017bc61cc65ab5f408a69b4f5a6edece8d0.tar.gz mediapointer-dvb-s2-04a62017bc61cc65ab5f408a69b4f5a6edece8d0.tar.bz2 |
Make sure void* arguments get converted in two steps:
first cast to long, then cast to the destination type
(mostly int) to avoid endianess bugs
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c index db9c6f27e..4bbca09cd 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_net.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c @@ -605,7 +605,7 @@ static int dvb_net_do_ioctl(struct inode *inode, struct file *file, case NET_REMOVE_IF: if (!capable(CAP_SYS_ADMIN)) return -EPERM; - return dvb_net_remove_if(dvbnet, (long) parg); + return dvb_net_remove_if(dvbnet, (int) (long) parg); default: return -EINVAL; } |