summaryrefslogtreecommitdiffstats
path: root/src/examples/vlib/main_stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/vlib/main_stub.c')
-rw-r--r--src/examples/vlib/main_stub.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/examples/vlib/main_stub.c b/src/examples/vlib/main_stub.c
index c5c19aaa01a..3735055d789 100644
--- a/src/examples/vlib/main_stub.c
+++ b/src/examples/vlib/main_stub.c
@@ -25,18 +25,17 @@ main (int argc, char *argv[])
static clib_error_t *
main_stub_init (vlib_main_t * vm)
{
- clib_error_t *error;
-
- if ((error = unix_physmem_init (vm)))
- return error;
-
- if ((error = vlib_call_init_function (vm, unix_cli_init)))
- return error;
+ clib_error_t *error = 0;
return error;
}
-VLIB_INIT_FUNCTION (main_stub_init);
+/* *INDENT-OFF* */
+VLIB_INIT_FUNCTION (main_stub_init) =
+{
+ .runs_after = VLIB_INITS("unix_physmem_init", "unix_cli_init"),
+};
+/* *INDENT-ON* */
#if 0
/* Node test code. */