@@ -60,7 +60,7 @@ br802_3_parse(int c, char **argv, int invert, unsigned int *flags,
if (i > 255 || *end != '\0')
xtables_error(PARAMETER_PROBLEM,
"Problem with specified "
- "sap hex value, %x",i);
+ "sap hex value, %x", i);
info->sap = i; /* one byte, so no byte order worries */
info->bitmask |= EBT_802_3_SAP;
break;
@@ -71,7 +71,7 @@ br802_3_parse(int c, char **argv, int invert, unsigned int *flags,
if (i > 65535 || *end != '\0') {
xtables_error(PARAMETER_PROBLEM,
"Problem with the specified "
- "type hex value, %x",i);
+ "type hex value, %x", i);
}
info->type = htons(i);
info->bitmask |= EBT_802_3_TYPE;
@@ -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);
}
@@ -129,7 +129,7 @@ print_options(unsigned int optsnr, uint16_t *optsp)
unsigned int i;
printf(" ");
- for(i = 0; i < optsnr; i++) {
+ for (i = 0; i < optsnr; i++) {
printf("%d", (optsp[i] & 0xFF00) >> 8);
if ((optsp[i] & 0x00FF) != 0x00FF)
@@ -36,18 +36,18 @@ parse_opts_num(const char *idstr, const char *typestr)
unsigned long int id;
char* ep;
- id = strtoul(idstr,&ep,0) ;
+ 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);
}
@@ -110,7 +110,7 @@ add_proto_to_mask(int proto){
unsigned int i=0, flag=0;
for (i = 0; i < ARRAY_SIZE(chain_flags); ++i)
- if (proto == chain_flags[i].proto){
+ if (proto == chain_flags[i].proto) {
flag = chain_flags[i].flag;
break;
}
This patch add or remove unnecessary spaces as reported by checkpatch.pl. Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com> --- extensions/libebt_802_3.c | 4 ++-- extensions/libip6t_dst.c | 8 ++++---- extensions/libip6t_hbh.c | 8 ++++---- extensions/libip6t_ipv6header.c | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-)