forked from luck/tmp_suning_uos_patched
netfilter: ipv4: whitespace around operators
This patch cleanses whitespace around arithmetical operators. No changes detected by objdiff. Signed-off-by: Ian Morris <ipm@chirality.org.uk> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
24cebe3f29
commit
c8d71d08aa
|
@ -492,14 +492,14 @@ static void arp_print(struct arp_payload *payload)
|
|||
{
|
||||
#define HBUFFERLEN 30
|
||||
char hbuffer[HBUFFERLEN];
|
||||
int j,k;
|
||||
int j, k;
|
||||
|
||||
for (k=0, j=0; k < HBUFFERLEN-3 && j < ETH_ALEN; j++) {
|
||||
for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < ETH_ALEN; j++) {
|
||||
hbuffer[k++] = hex_asc_hi(payload->src_hw[j]);
|
||||
hbuffer[k++] = hex_asc_lo(payload->src_hw[j]);
|
||||
hbuffer[k++]=':';
|
||||
hbuffer[k++] = ':';
|
||||
}
|
||||
hbuffer[--k]='\0';
|
||||
hbuffer[--k] = '\0';
|
||||
|
||||
pr_debug("src %pI4@%s, dst %pI4\n",
|
||||
&payload->src_ip, hbuffer, &payload->dst_ip);
|
||||
|
|
|
@ -25,7 +25,7 @@ spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert)
|
|||
bool r;
|
||||
pr_debug("spi_match:%c 0x%x <= 0x%x <= 0x%x\n",
|
||||
invert ? '!' : ' ', min, spi, max);
|
||||
r=(spi >= min && spi <= max) ^ invert;
|
||||
r = (spi >= min && spi <= max) ^ invert;
|
||||
pr_debug(" result %s\n", r ? "PASS" : "FAILED");
|
||||
return r;
|
||||
}
|
||||
|
|
|
@ -1156,7 +1156,7 @@ static int snmp_parse_mangle(unsigned char *msg,
|
|||
}
|
||||
|
||||
if (obj->type == SNMP_IPADDR)
|
||||
mangle_address(ctx.begin, ctx.pointer - 4 , map, check);
|
||||
mangle_address(ctx.begin, ctx.pointer - 4, map, check);
|
||||
|
||||
kfree(obj->id);
|
||||
kfree(obj);
|
||||
|
|
Loading…
Reference in New Issue
Block a user