V4L/DVB (6070): Fix a warning at dvb_net
authorMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 20 Aug 2007 19:45:35 +0000 (16:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 23 Aug 2007 16:17:32 +0000 (13:17 -0300)
commit04b35abef779f5ed1ff5c039dffbbcc5d2c060b6
treec21213af006a84e904b03e336b6f15e384ccad84
parent6175e487e314385e37f06448847e4c46c20edb44
V4L/DVB (6070): Fix a warning at dvb_net

static function dvb_net_sec declares input arg "pkt" as u8. However, the
same argument at dvb_net_sec_callback is defined as "const u8". When
calling dvb_net_sec, this is casted as just "u8".

gcc 4.2.1 generates a warning about that:

  CC [M]  drivers/media/dvb/dvb-core/dvb_net.o
drivers/media/dvb/dvb-core/dvb_net.c: In function "dvb_net_sec_callback":
drivers/media/dvb/dvb-core/dvb_net.c:905: warning: passing argument 2 of
"dvb_net_sec" discards qualifiers from pointer target type

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-core/dvb_net.c