vxlan: vxlan/vxlan.api API cleanup
[vpp.git] / src / vpp / api / test_ha.c
index d88c4d4..e05361b 100644 (file)
@@ -113,7 +113,7 @@ ping (test_main_t * tm)
   vl_api_control_ping_t *mp;
 
   mp = vl_msg_api_alloc (sizeof (*mp));
-  memset (mp, 0, sizeof (*mp));
+  clib_memset (mp, 0, sizeof (*mp));
   mp->_vl_msg_id = ntohs (VL_API_CONTROL_PING);
   mp->client_index = tm->my_client_index;
   mp->context = 0xdeadbeef;
@@ -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;