summaryrefslogtreecommitdiffstats
path: root/net/bridge/netfilter/ebt_arpreply.c
diff options
context:
space:
mode:
authorJan Engelhardt2008-01-31 12:59:24 +0100
committerDavid S. Miller2008-02-01 04:27:33 +0100
commitabfdf1c48907f78ad7d943b77ea180bf5504564f (patch)
treea86caaae9c3c70b7a07f2abb10e854d3153e8124 /net/bridge/netfilter/ebt_arpreply.c
parent[NETFILTER]: nf_log: add netfilter gcc printf format checking (diff)
downloadkernel-qcow2-linux-abfdf1c48907f78ad7d943b77ea180bf5504564f.tar.gz
kernel-qcow2-linux-abfdf1c48907f78ad7d943b77ea180bf5504564f.tar.xz
kernel-qcow2-linux-abfdf1c48907f78ad7d943b77ea180bf5504564f.zip
[NETFILTER]: ebtables: remove casts, use consts
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/netfilter/ebt_arpreply.c')
-rw-r--r--net/bridge/netfilter/ebt_arpreply.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/net/bridge/netfilter/ebt_arpreply.c b/net/bridge/netfilter/ebt_arpreply.c
index 48a80e423287..7b6a8c13ccd8 100644
--- a/net/bridge/netfilter/ebt_arpreply.c
+++ b/net/bridge/netfilter/ebt_arpreply.c
@@ -19,10 +19,13 @@ static int ebt_target_reply(struct sk_buff *skb, unsigned int hooknr,
const struct net_device *in, const struct net_device *out,
const void *data, unsigned int datalen)
{
- struct ebt_arpreply_info *info = (struct ebt_arpreply_info *)data;
- __be32 _sip, *siptr, _dip, *diptr;
- struct arphdr _ah, *ap;
- unsigned char _sha[ETH_ALEN], *shp;
+ struct ebt_arpreply_info *info = (void *)data;
+ const __be32 *siptr, *diptr;
+ __be32 _sip, _dip;
+ const struct arphdr *ap;
+ struct arphdr _ah;
+ const unsigned char *shp;
+ unsigned char _sha[ETH_ALEN];
ap = skb_header_pointer(skb, 0, sizeof(_ah), &_ah);
if (ap == NULL)
@@ -58,7 +61,7 @@ static int ebt_target_reply(struct sk_buff *skb, unsigned int hooknr,
static int ebt_target_reply_check(const char *tablename, unsigned int hookmask,
const struct ebt_entry *e, void *data, unsigned int datalen)
{
- struct ebt_arpreply_info *info = (struct ebt_arpreply_info *)data;
+ const struct ebt_arpreply_info *info = data;
if (datalen != EBT_ALIGN(sizeof(struct ebt_arpreply_info)))
return -EINVAL;