diff options
author | Dave Barach <dave@barachs.net> | 2017-03-08 19:08:56 -0500 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-03-09 19:07:17 +0000 |
commit | 80f54e20270ed0628ee725e3e3c515731a0188f2 (patch) | |
tree | fa06d939942af6f5126ee645c38cb787814bfb6f /src/vlibapi/node_serialize.c | |
parent | b3b2de71ceea0cc7ce18f89cc8180ed4a42e355d (diff) |
vlib_mains == 0 special cases be gone
Clean up spurious binary API client link dependency on libvlib.so,
which managed to hide behind vlib_mains == 0 checks reached by
VLIB_xxx_FUNCTION macros.
Change-Id: I5df1f8ab07dca1944250e643ccf06e60a8462325
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlibapi/node_serialize.c')
-rw-r--r-- | src/vlibapi/node_serialize.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/vlibapi/node_serialize.c b/src/vlibapi/node_serialize.c index 4dc1a7d2272..50e5c41c219 100644 --- a/src/vlibapi/node_serialize.c +++ b/src/vlibapi/node_serialize.c @@ -73,16 +73,11 @@ vlib_node_serialize (vlib_node_main_t * nm, u8 * vector, if (vec_len (stat_vms) == 0) { - if (vec_len (vlib_mains) == 0) - vec_add1 (stat_vms, vm); - else + for (i = 0; i < vec_len (vlib_mains); i++) { - for (i = 0; i < vec_len (vlib_mains); i++) - { - stat_vm = vlib_mains[i]; - if (stat_vm) - vec_add1 (stat_vms, stat_vm); - } + stat_vm = vlib_mains[i]; + if (stat_vm) + vec_add1 (stat_vms, stat_vm); } } @@ -286,7 +281,7 @@ vlib_node_unserialize (u8 * vector) return nodes_by_thread; } -#if CLIB_DEBUG > 0 +#if TEST_CODE static clib_error_t * test_node_serialize_command_fn (vlib_main_t * vm, |