Skip to contentSkip to conversation

iptables: extensions: Remove spaces.

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables: extensions: Remove spaces.

Solve the checkpatch issue:
space prohibited before close parenthesis ')'
space prohibited after open parenthesis '('

---
 extensions/libip6t_ah.c  | 4 ++--
 extensions/libip6t_dst.c | 6 +++---
 extensions/libip6t_hbh.c | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)
extensions/libip6t_ah.c +2 -2
index 38c71f2..fc3e524 100644
@@ -118,13 +118,13 @@ static void ah_save(const void *ip, const struct xt_entry_match *match)
 			       ahinfo->spis[0]);
 	}
 
-	if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN) ) {
+	if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN)) {
 		printf("%s --ahlen %u",
 			(ahinfo->invflags & IP6T_AH_INV_LEN) ? " !" : "",
 			ahinfo->hdrlen);
 	}
 
-	if (ahinfo->hdrres != 0 )
+	if (ahinfo->hdrres != 0)
 		printf(" --ahres");
 }
 
extensions/libip6t_dst.c +3 -3
index 321e1f4..83358ab 100644
@@ -36,16 +36,16 @@ parse_opts_num(const char *idstr, const char *typestr)
 
 	id = strtoul(idstr, &ep, 0);
 
-	if ( idstr == ep ) {
+	if (idstr == ep) {
 		xtables_error(PARAMETER_PROBLEM,
 		           "dst: no valid digits in %s `%s'", typestr, idstr);
 	}
-	if ( id == ULONG_MAX  && errno == ERANGE ) {
+	if (id == ULONG_MAX  && errno == ERANGE) {
 		xtables_error(PARAMETER_PROBLEM,
 			   "%s `%s' specified too big: would overflow",
 			   typestr, idstr);
 	}
-	if ( *idstr != '\0'  && *ep != '\0' ) {
+	if (*idstr != '\0'  && *ep != '\0') {
 		xtables_error(PARAMETER_PROBLEM,
 		           "dst: error parsing %s `%s'", typestr, idstr);
 	}
extensions/libip6t_hbh.c +3 -3
index 8e1b0ac..469fecf 100644
@@ -38,16 +38,16 @@ parse_opts_num(const char *idstr, const char *typestr)
 
 	id =  strtoul(idstr,&ep,0) ;
 
-	if ( idstr == ep ) {
+	if (idstr == ep) {
 		xtables_error(PARAMETER_PROBLEM,
 			   "hbh: no valid digits in %s `%s'", typestr, idstr);
 	}
-	if ( id == ULONG_MAX  && errno == ERANGE ) {
+	if (id == ULONG_MAX  && errno == ERANGE) {
 		xtables_error(PARAMETER_PROBLEM,
 			   "%s `%s' specified too big: would overflow",
 			   typestr, idstr);
 	}	
-	if ( *idstr != '\0'  && *ep != '\0' ) {
+	if (*idstr != '\0'  && *ep != '\0') {
 		xtables_error(PARAMETER_PROBLEM,
 			   "hbh: error parsing %s `%s'", typestr, idstr);
 	}
Signature · 1 line
2.11.0