[NETFILTER]: silence a warning in ebtables
authorMeelis Roos <mroos@linux.ee>
Thu, 2 Nov 2006 02:07:27 +0000 (18:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2006 02:07:27 +0000 (18:07 -0800)
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>
net/bridge/netfilter/ebtables.c

index 3df55b2..9f85666 100644 (file)
@@ -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;