X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvnet%2Fdevices%2Fpipe%2Fpipe_api.c;h=35efb87a7122cfc3dc54853516e1b7e1399d8a0a;hp=1466681949f4180778047c74c5771a7415367977;hb=39d69112fcec114fde34955ceb41555221d3ba11;hpb=6b3f25caff262b536a5449ac5461dd041c92a655 diff --git a/src/vnet/devices/pipe/pipe_api.c b/src/vnet/devices/pipe/pipe_api.c index 1466681949f..35efb87a712 100644 --- a/src/vnet/devices/pipe/pipe_api.c +++ b/src/vnet/devices/pipe/pipe_api.c @@ -146,7 +146,7 @@ setup_message_id_table (api_main_t * am) static clib_error_t * pipe_api_hookup (vlib_main_t * vm) { - api_main_t *am = &api_main; + api_main_t *am = vlibapi_get_main (); #define _(N,n) \ vl_msg_api_set_handlers(VL_API_##N, #n, \