Skip to contentSkip to conversation

silence a warning in ebtables

PATCH Applied Meelis Roos 2 participants 2 messages Nov 1, 2006 – Nov 2, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

net/bridge/netfilter/ebtables.c +1 -1
index 3df55b2..9f85666 100644
@@ -86,7 +86,7 @@ static inline int ebt_do_match (struct e
 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;
Signature · 1 line
Meelis Roos ([email protected])
maintainer Applied
#1 lore raw

From: Meelis Roos <[email protected]>
Date: Wed, 1 Nov 2006 19:01:14 +0200 (EET)

Quoted 6 lines

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.

Applied, thanks a lot.