diff options
author | 2017-02-06 19:06:53 +0800 | |
---|---|---|
committer | 2017-02-06 11:28:18 -0500 | |
commit | d90f85ca4a250b4884ad8caacd22117d2e03f9ab (patch) | |
tree | 465f4ba83a5456e91012434b2d500cc2cc2f1b78 /nsh-plugin/nsh | |
parent | c9580f8b0e19ac677c6412940d1692337bd4a06d (diff) |
Fix compile issue due to jvpp and plugin improvement
Change-Id: I86f172d9b2f59a7e2a24c71e876230c7ba48111e
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh')
-rw-r--r-- | nsh-plugin/nsh/nsh.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c index b0e9539..f03e176 100644 --- a/nsh-plugin/nsh/nsh.c +++ b/nsh-plugin/nsh/nsh.c @@ -104,18 +104,10 @@ _(NSH_ADD_DEL_MAP, nsh_add_del_map) \ _(NSH_MAP_DUMP, nsh_map_dump) -clib_error_t * -vlib_plugin_register (vlib_main_t * vm, vnet_plugin_handoff_t * h, - int from_early_init) -{ - nsh_main_t * nm = &nsh_main; - clib_error_t * error = 0; - - nm->vlib_main = vm; - nm->vnet_main = h->vnet_main; - - return error; -} +/* *INDENT-OFF* */ +VLIB_PLUGIN_REGISTER () = { +}; +/* *INDENT-ON* */ typedef struct { nsh_header_t nsh_header; |