summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMeelis Roos <mroos@linux.ee>2006-11-01 18:07:27 -0800
committerDavid S. Miller <davem@davemloft.net>2006-11-01 18:07:27 -0800
commit6f5b7ef6b5816dc497094048d7d8a270004602d6 (patch)
tree2c1b87b2680be227afaaafbe43d188afd95035c2 /net
parent5b1225454f7891970cb5ba87c8ef24edb1fa6c3a (diff)
downloadlinux-6f5b7ef6b5816dc497094048d7d8a270004602d6.tar.gz
linux-6f5b7ef6b5816dc497094048d7d8a270004602d6.tar.bz2
linux-6f5b7ef6b5816dc497094048d7d8a270004602d6.zip
[NETFILTER]: silence a warning in ebtables
net/bridge/netfilter/ebtables.c: In function 'ebt_dev_check': net/bridge/netfilter/ebtables.c:89: warning: initialization discards qualifiers from pointer target type So make the char* a const char * and the warning is gone. Signed-off-by: Meelis Roos <mroos@linux.ee> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/bridge/netfilter/ebtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
index 3df55b2bd91d..9f85666f29f7 100644
--- a/net/bridge/netfilter/ebtables.c
+++ b/net/bridge/netfilter/ebtables.c
@@ -86,7 +86,7 @@ static inline int ebt_do_match (struct ebt_entry_match *m,
static inline int ebt_dev_check(char *entry, const struct net_device *device)
{
int i = 0;
- char *devname = device->name;
+ const char *devname = device->name;
if (*entry == '\0')
return 0;