diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-12-01 16:49:45 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-12-01 16:49:45 +0100 |
commit | 3e30070331b8a6f8173895a074d342c9ebf07a25 (patch) | |
tree | 886c0c61fcb7c6d81e681f3d7b7a0f14e62d9741 /pbrd/pbr_nht.c | |
parent | Merge pull request #3405 from LabNConsulting/working/master/fix-vrf (diff) | |
download | frr-3e30070331b8a6f8173895a074d342c9ebf07a25.tar.xz frr-3e30070331b8a6f8173895a074d342c9ebf07a25.zip |
Revert "isisd lib ospfd pbrd python: fix empty init"
This reverts commit 48944eb65e1d1ced03d46121d923d9d613a480d5.
We're using GNU C, not ISO C - and this commit triggers new (real)
warnings about {0} instead of bogus ones about {}.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'pbrd/pbr_nht.c')
-rw-r--r-- | pbrd/pbr_nht.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pbrd/pbr_nht.c b/pbrd/pbr_nht.c index db958e833..6103bd7db 100644 --- a/pbrd/pbr_nht.c +++ b/pbrd/pbr_nht.c @@ -232,9 +232,9 @@ void pbr_nhgroup_add_nexthop_cb(const struct nexthop_group_cmd *nhgc, const struct nexthop *nhop) { char debugstr[256]; - struct pbr_nexthop_group_cache pnhgc_find = {0}; + struct pbr_nexthop_group_cache pnhgc_find = {}; struct pbr_nexthop_group_cache *pnhgc; - struct pbr_nexthop_cache pnhc_find = {0}; + struct pbr_nexthop_cache pnhc_find = {}; struct pbr_nexthop_cache *pnhc; if (!pbr_nht_get_next_tableid(true)) { @@ -270,9 +270,9 @@ void pbr_nhgroup_del_nexthop_cb(const struct nexthop_group_cmd *nhgc, const struct nexthop *nhop) { char debugstr[256]; - struct pbr_nexthop_group_cache pnhgc_find = {0}; + struct pbr_nexthop_group_cache pnhgc_find = {}; struct pbr_nexthop_group_cache *pnhgc; - struct pbr_nexthop_cache pnhc_find = {0}; + struct pbr_nexthop_cache pnhc_find = {}; struct pbr_nexthop_cache *pnhc; enum nexthop_types_t nh_afi = nhop->type; |