Commit 6f5b7ef6 authored by Meelis Roos's avatar Meelis Roos Committed by David S. Miller

[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: default avatarMeelis Roos <mroos@linux.ee>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5b122545
...@@ -86,7 +86,7 @@ static inline int ebt_do_match (struct ebt_entry_match *m, ...@@ -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) static inline int ebt_dev_check(char *entry, const struct net_device *device)
{ {
int i = 0; int i = 0;
char *devname = device->name; const char *devname = device->name;
if (*entry == '\0') if (*entry == '\0')
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment