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>
(cherry picked from commit
fcf6dce79a2e1ee4b7a5b4bb565f1755cda0d1f4)
#define FAILED VT100_RED "failed" VT100_RESET
/* 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;
#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;
#include "bgpd/bgp_ecommunity.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 int failed = 0;
#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;
#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;