Skip to content

Commit

Permalink
[NETFILTER]: silence a warning in ebtables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
meelisroos authored and davem330 committed Nov 2, 2006
1 parent 5b12254 commit 6f5b7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bridge/netfilter/ebtables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f5b7ef

Please sign in to comment.