diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-04-27 14:16:50 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-04-27 14:16:50 +0200 |
commit | fcf6dce79a2e1ee4b7a5b4bb565f1755cda0d1f4 (patch) | |
tree | a119f023eb50c9d7cb8d8a2e51db8d49e36f94f7 /tests/bgpd/test_packet.c | |
parent | bgpd: Ensure pkt_afi and pkt_safi are not used uninited in some cases (diff) | |
download | frr-fcf6dce79a2e1ee4b7a5b4bb565f1755cda0d1f4.tar.xz frr-fcf6dce79a2e1ee4b7a5b4bb565f1755cda0d1f4.zip |
tests: Correctly align variable type in tests
New compilers are noticing that the tests are compiling with
a pointer for the bgpd_privs variable while the bgp library
that is being linked against is not a pointer. Since
these tests had the declaration just to make the compiler
happy, let's actually align the variable type to make the
compiler even happier.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/bgpd/test_packet.c')
-rw-r--r-- | tests/bgpd/test_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bgpd/test_packet.c b/tests/bgpd/test_packet.c index 27afa6a12..2ce8b561b 100644 --- a/tests/bgpd/test_packet.c +++ b/tests/bgpd/test_packet.c @@ -37,7 +37,7 @@ #include "bgpd/bgp_network.h" /* need these to link in libbgp */ -struct zebra_privs_t *bgpd_privs = NULL; +struct zebra_privs_t bgpd_privs = {}; struct thread_master *master = NULL; static struct bgp *bgp; |