summaryrefslogtreecommitdiffstats
path: root/src/plugins/http_static
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/http_static')
-rw-r--r--src/plugins/http_static/http_static_test.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/plugins/http_static/http_static_test.c b/src/plugins/http_static/http_static_test.c
index 0720463cf63..545980b38dd 100644
--- a/src/plugins/http_static/http_static_test.c
+++ b/src/plugins/http_static/http_static_test.c
@@ -208,25 +208,7 @@ http_static_api_hookup (vat_main_t * vam)
#undef _
}
-clib_error_t *
-vat_plugin_register (vat_main_t * vam)
-{
- http_static_test_main_t *htmp = &http_static_test_main;
- u8 *name;
-
- htmp->vat_main = vam;
-
- /* Ask the vpp engine for the first assigned message-id */
- name = format (0, "http_static_%08x%c", api_version, 0);
- htmp->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name);
-
- if (htmp->msg_id_base != (u16) ~ 0)
- http_static_api_hookup (vam);
-
- vec_free (name);
-
- return 0;
-}
+VAT_PLUGIN_REGISTER (http_static);
/*
* fd.io coding-style-patch-verification: ON