summaryrefslogtreecommitdiffstats
path: root/src/vpp/api/test_ha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp/api/test_ha.c')
-rw-r--r--src/vpp/api/test_ha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp/api/test_ha.c b/src/vpp/api/test_ha.c
index b9fc428d192..e05361b1d59 100644
--- a/src/vpp/api/test_ha.c
+++ b/src/vpp/api/test_ha.c
@@ -131,7 +131,7 @@ connect_to_vpe (char *name)
{
int rv = 0;
test_main_t *tm = &test_main;
- api_main_t *am = &api_main;
+ api_main_t *am = vlibapi_get_main ();
rv = vl_client_connect_to_vlib ("/vpe-api", name, 32);
if (rv < 0)
@@ -174,7 +174,7 @@ int
main (int argc, char **argv)
{
test_main_t *tm = &test_main;
- api_main_t *am = &api_main;
+ api_main_t *am = vlibapi_get_main ();
u32 swt_pid = 0;
int connected = 0;