summaryrefslogtreecommitdiffstats
path: root/bfdd/bfdd_vty.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 19:51:33 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-26 00:00:16 +0100
commitd8729f8cb55d118c1937b7d001d70d6ea4476e52 (patch)
tree0890eb18b74ac62411e8a991d0db2d1579042a46 /bfdd/bfdd_vty.c
parentMerge pull request #3864 from qlyoung/fix-ospf-mtu-warning-style (diff)
downloadfrr-d8729f8cb55d118c1937b7d001d70d6ea4476e52.tar.xz
frr-d8729f8cb55d118c1937b7d001d70d6ea4476e52.zip
*: use proper bool initializers & fix comparisons
- bools should be initialized with true/false - bools do not need to be compared Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bfdd/bfdd_vty.c')
-rw-r--r--bfdd/bfdd_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c
index 0041f9cc2..c77cd08be 100644
--- a/bfdd/bfdd_vty.c
+++ b/bfdd/bfdd_vty.c
@@ -564,7 +564,7 @@ static void _display_all_peers(struct vty *vty, bool use_json)
{
struct json_object *jo;
- if (use_json == false) {
+ if (!use_json) {
vty_out(vty, "BFD Peers:\n");
bfd_id_iterate(_display_peer_iter, vty);
return;
@@ -647,7 +647,7 @@ static void _display_peers_counter(struct vty *vty, bool use_json)
{
struct json_object *jo;
- if (use_json == false) {
+ if (!use_json) {
vty_out(vty, "BFD Peers:\n");
bfd_id_iterate(_display_peer_counter_iter, vty);
return;