diff options
author | Holger Waechtler <devnull@localhost> | 2003-01-09 18:28:29 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-01-09 18:28:29 +0000 |
commit | d8d2dc0fd295625373e68f23931f8ceee1990277 (patch) | |
tree | 6f622c0d91a8d42903ddc861847baba3d03707d5 /linux/drivers/media/dvb | |
parent | f470a7dcf7a0c2d011dd8e0225b7dc026efbf709 (diff) | |
download | mediapointer-dvb-s2-d8d2dc0fd295625373e68f23931f8ceee1990277.tar.gz mediapointer-dvb-s2-d8d2dc0fd295625373e68f23931f8ceee1990277.tar.bz2 |
- add #include <asm/semaphore.h> and #include <linux/timer.h> in order
to avoid implicit declarations
- make dvb_net buffers const pointers to suppress a warning when calling the demux
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_demux.h | 3 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_net.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.h b/linux/drivers/media/dvb/dvb-core/dvb_demux.h index 896703f79..03f8337ce 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_demux.h +++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.h @@ -25,6 +25,9 @@ #ifndef _DVB_DEMUX_H_ #define _DVB_DEMUX_H_ +#include <asm/semaphore.h> +#include <linux/timer.h> + #include "demux.h" #define DMX_TYPE_TS 0 diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c index 8d2c9e5e1..0ee9a902d 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_net.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c @@ -94,7 +94,7 @@ unsigned short my_eth_type_trans(struct sk_buff *skb, struct net_device *dev) } static void -dvb_net_sec(struct net_device *dev, u8 *pkt, int pkt_len) +dvb_net_sec(struct net_device *dev, const u8 *pkt, int pkt_len) { u8 *eth; struct sk_buff *skb; @@ -131,8 +131,8 @@ dvb_net_sec(struct net_device *dev, u8 *pkt, int pkt_len) } static int -dvb_net_callback(u8 *buffer1, size_t buffer1_len, - u8 *buffer2, size_t buffer2_len, +dvb_net_callback(const u8 *buffer1, size_t buffer1_len, + const u8 *buffer2, size_t buffer2_len, dmx_section_filter_t *filter, dmx_success_t success) { |