Skip to contentSkip to conversation

iptables: extensions: Add/Remove the braces where necessary

PATCH New Arushi Singhal 1 participant 1 message Mar 31, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables: extensions: Add/Remove the braces where necessary

To follow the coding style of kernel the braces are removed/added and placed properly, if not.

---
 extensions/libebt_802_3.c | 3 +--
 extensions/libebt_ip.c    | 5 ++---
 2 files changed, 3 insertions(+), 5 deletions(-)
extensions/libebt_802_3.c +1 -2
index f05d02e..801fb51 100644
@@ -111,8 +111,7 @@ static void br802_3_print(const void *ip, const struct xt_entry_match *match,
 	}
 }
 
-static struct xtables_match br802_3_match =
-{
+static struct xtables_match br802_3_match = {
 	.name		= "802_3",
 	.revision	= 0,
 	.version	= XTABLES_VERSION,
extensions/libebt_ip.c +2 -3
index 6b301e2..5943120 100644
@@ -274,11 +274,10 @@ static void brip_print(const void *ip, const struct xt_entry_match *match,
 		if (info->invflags & EBT_IP_PROTO)
 			printf("! ");
 		pe = getprotobynumber(info->protocol);
-		if (pe == NULL) {
+		if (pe == NULL)
 			printf("%d ", info->protocol);
-		} else {
+		else
 			printf("%s ", pe->p_name);
-		}
 	}
 	if (info->bitmask & EBT_IP_SPORT) {
 		printf("--ip-sport ");
Signature · 1 line
2.11.0