summaryrefslogtreecommitdiff
path: root/tests/bgpd/test_capability.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-04-27 08:16:50 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-04-27 08:16:50 -0400
commitfcf6dce79a2e1ee4b7a5b4bb565f1755cda0d1f4 (patch)
treea119f023eb50c9d7cb8d8a2e51db8d49e36f94f7 /tests/bgpd/test_capability.c
parent617975d114f41116a15f81ecf6f6c57487fc2e82 (diff)
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_capability.c')
-rw-r--r--tests/bgpd/test_capability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bgpd/test_capability.c b/tests/bgpd/test_capability.c
index 3568411387..44d15d6014 100644
--- a/tests/bgpd/test_capability.c
+++ b/tests/bgpd/test_capability.c
@@ -44,7 +44,7 @@
#define OPT_PARAM 2
/* 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 int failed = 0;