aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mactime/mactime_top.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/mactime/mactime_top.c')
-rw-r--r--src/plugins/mactime/mactime_top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/mactime/mactime_top.c b/src/plugins/mactime/mactime_top.c
index df7c755111f..48735a2e816 100644
--- a/src/plugins/mactime/mactime_top.c
+++ b/src/plugins/mactime/mactime_top.c
@@ -120,7 +120,7 @@ vl_api_mactime_details_t_handler (vl_api_mactime_details_t * mp)
static int
connect_to_vpp (char *name)
{
- api_main_t *am = &api_main;
+ api_main_t *am = vlibapi_get_main ();
mt_main_t *mm = &mt_main;
u8 *msg_base_lookup_name;