X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2Fapi%2Fapi.c;h=d69b84fd0b94538e881d2ee47466563e29d51c29;hb=f94c63ea392a79b509a7b8263f5a9372a58786f9;hp=8e24493c0ce52ebdccd82cbf394929d644dbbe8b;hpb=1ddbc0138b64486b8e51e5e12fcad21fba8b8b68;p=vpp.git diff --git a/src/vpp/api/api.c b/src/vpp/api/api.c index 8e24493c0ce..d69b84fd0b9 100644 --- a/src/vpp/api/api.c +++ b/src/vpp/api/api.c @@ -56,7 +56,7 @@ #undef BIHASH_TYPE #undef __included_bihash_template_h__ -#include +#include #include @@ -432,7 +432,7 @@ static void setup_message_id_table (api_main_t * am); /* * vpe_api_hookup * Add vpe's API message handlers to the table. - * vlib has alread mapped shared memory and + * vlib has already mapped shared memory and * added the client registration handlers. * See .../open-repo/vlib/memclnt_vlib.c:memclnt_process() */ @@ -474,7 +474,7 @@ vpe_api_hookup (vlib_main_t * vm) VLIB_API_INIT_FUNCTION (vpe_api_hookup); -static clib_error_t * +clib_error_t * vpe_api_init (vlib_main_t * vm) { vpe_api_main_t *am = &vpe_api_main; @@ -492,9 +492,6 @@ vpe_api_init (vlib_main_t * vm) return 0; } -VLIB_INIT_FUNCTION (vpe_api_init); - - static clib_error_t * api_segment_config (vlib_main_t * vm, unformat_input_t * input) {