diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-04 14:05:22 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-04 14:05:22 +0100 |
commit | f06c4576b781a76bdc41031d5b97cf858cc2143a (patch) | |
tree | 638392c20de3bbd0a79a1baf9e536f3307c30f4e /vrrpd/vrrp.c | |
parent | *: Use short version of bool expressions (diff) | |
download | frr-f06c4576b781a76bdc41031d5b97cf858cc2143a.tar.xz frr-f06c4576b781a76bdc41031d5b97cf858cc2143a.zip |
*: Return bool type for bool functions
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'vrrpd/vrrp.c')
-rw-r--r-- | vrrpd/vrrp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index cb17759de..da6de341e 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -2347,11 +2347,11 @@ static bool vrrp_hash_cmp(const void *arg1, const void *arg2) const struct vrrp_vrouter *vr2 = arg2; if (vr1->ifp != vr2->ifp) - return 0; + return false; if (vr1->vrid != vr2->vrid) - return 0; + return false; - return 1; + return true; } void vrrp_init(void) |