summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-09-10 11:05:57 +0000
committerMichael Hunold <devnull@localhost>2003-09-10 11:05:57 +0000
commit04a62017bc61cc65ab5f408a69b4f5a6edece8d0 (patch)
treea0e1aa452e6157bd7af1e3606927a1c48ef9c704 /linux/drivers/media/dvb/ttpci
parent83dd624930fecb0790451f79f90e4471772acc69 (diff)
downloadmediapointer-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/ttpci')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-patch.c b/linux/drivers/media/dvb/ttpci/budget-patch.c
index 2673d6042..14d3e56d7 100644
--- a/linux/drivers/media/dvb/ttpci/budget-patch.c
+++ b/linux/drivers/media/dvb/ttpci/budget-patch.c
@@ -150,7 +150,7 @@ int budget_patch_diseqc_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *
}
case FE_DISEQC_SEND_BURST:
- av7110_send_diseqc_msg (budget, 0, NULL, (int) arg);
+ av7110_send_diseqc_msg (budget, 0, NULL, (int) (long) arg);
break;
default: