summaryrefslogtreecommitdiffstats
path: root/src/monitor.c
diff options
context:
space:
mode:
authorJose M. Guisado Gomez <guigom@riseup.net>2020-12-06 11:12:34 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2020-12-08 12:47:12 +0100
commitd357e27aa45870f2955d7a57c7c860d3ec7145c4 (patch)
tree23f282ec7600f178debba564b60b325f3c9c23ed /src/monitor.c
parent12fdaf7e3efdab1f30f40154ee7db3f25cbb0add (diff)
monitor: fix formatting of if statements
Replace some "if(" introduced in cb7e02f4 by "if (" Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/monitor.c')
-rw-r--r--src/monitor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/monitor.c b/src/monitor.c
index 2b5325ea..af2998d4 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -225,7 +225,7 @@ static int netlink_events_table_cb(const struct nlmsghdr *nlh, int type,
break;
case NFTNL_OUTPUT_JSON:
monitor_print_table_json(monh, cmd, t);
- if(!nft_output_echo(&monh->ctx->nft->output))
+ if (!nft_output_echo(&monh->ctx->nft->output))
nft_mon_print(monh, "\n");
break;
}
@@ -264,7 +264,7 @@ static int netlink_events_chain_cb(const struct nlmsghdr *nlh, int type,
break;
case NFTNL_OUTPUT_JSON:
monitor_print_chain_json(monh, cmd, c);
- if(!nft_output_echo(&monh->ctx->nft->output))
+ if (!nft_output_echo(&monh->ctx->nft->output))
nft_mon_print(monh, "\n");
break;
}
@@ -312,7 +312,7 @@ static int netlink_events_set_cb(const struct nlmsghdr *nlh, int type,
break;
case NFTNL_OUTPUT_JSON:
monitor_print_set_json(monh, cmd, set);
- if(!nft_output_echo(&monh->ctx->nft->output))
+ if (!nft_output_echo(&monh->ctx->nft->output))
nft_mon_print(monh, "\n");
break;
}
@@ -457,7 +457,7 @@ static int netlink_events_setelem_cb(const struct nlmsghdr *nlh, int type,
/* prevent set_free() from trying to free those */
dummyset->handle.set.name = NULL;
dummyset->handle.table.name = NULL;
- if(!nft_output_echo(&monh->ctx->nft->output))
+ if (!nft_output_echo(&monh->ctx->nft->output))
nft_mon_print(monh, "\n");
break;
}
@@ -504,7 +504,7 @@ static int netlink_events_obj_cb(const struct nlmsghdr *nlh, int type,
break;
case NFTNL_OUTPUT_JSON:
monitor_print_obj_json(monh, cmd, obj);
- if(!nft_output_echo(&monh->ctx->nft->output))
+ if (!nft_output_echo(&monh->ctx->nft->output))
nft_mon_print(monh, "\n");
break;
}
@@ -556,7 +556,7 @@ static int netlink_events_rule_cb(const struct nlmsghdr *nlh, int type,
break;
case NFTNL_OUTPUT_JSON:
monitor_print_rule_json(monh, cmd, r);
- if(!nft_output_echo(&monh->ctx->nft->output))
+ if (!nft_output_echo(&monh->ctx->nft->output))
nft_mon_print(monh, "\n");
break;
}