mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[NETFILTER]: Parenthesize macro parameters
Parenthesize macro parameters. Signed-off-by: Jan Engelhardt <[email protected]> Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
643a2c15a4
commit
e79ec50b95
10 changed files with 19 additions and 16 deletions
|
|
@ -84,7 +84,7 @@ static inline int arp_packet_match(const struct arphdr *arphdr,
|
|||
__be32 src_ipaddr, tgt_ipaddr;
|
||||
int i, ret;
|
||||
|
||||
#define FWINV(bool,invflg) ((bool) ^ !!(arpinfo->invflags & invflg))
|
||||
#define FWINV(bool, invflg) ((bool) ^ !!(arpinfo->invflags & (invflg)))
|
||||
|
||||
if (FWINV((arphdr->ar_op & arpinfo->arpop_mask) != arpinfo->arpop,
|
||||
ARPT_INV_ARPOP)) {
|
||||
|
|
@ -180,6 +180,7 @@ static inline int arp_packet_match(const struct arphdr *arphdr,
|
|||
}
|
||||
|
||||
return 1;
|
||||
#undef FWINV
|
||||
}
|
||||
|
||||
static inline int arp_checkentry(const struct arpt_arp *arp)
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ ip_packet_match(const struct iphdr *ip,
|
|||
size_t i;
|
||||
unsigned long ret;
|
||||
|
||||
#define FWINV(bool,invflg) ((bool) ^ !!(ipinfo->invflags & invflg))
|
||||
#define FWINV(bool, invflg) ((bool) ^ !!(ipinfo->invflags & (invflg)))
|
||||
|
||||
if (FWINV((ip->saddr&ipinfo->smsk.s_addr) != ipinfo->src.s_addr,
|
||||
IPT_INV_SRCIP)
|
||||
|
|
@ -216,6 +216,7 @@ unconditional(const struct ipt_ip *ip)
|
|||
return 0;
|
||||
|
||||
return 1;
|
||||
#undef FWINV
|
||||
}
|
||||
|
||||
#if defined(CONFIG_NETFILTER_XT_TARGET_TRACE) || \
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ MODULE_ALIAS("ip_nat_snmp_basic");
|
|||
|
||||
#define SNMP_PORT 161
|
||||
#define SNMP_TRAP_PORT 162
|
||||
#define NOCT1(n) (*(u8 *)n)
|
||||
#define NOCT1(n) (*(u8 *)(n))
|
||||
|
||||
static int debug;
|
||||
static DEFINE_SPINLOCK(snmp_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue