X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vlib%2Fvlib%2Fparse.c;h=cea8f7515a0635aaad26c3987e78828b25b3b7b6;hb=e389de77de7bc08761ad1f9e1c27ba54123e4faa;hp=844be8aafe38703b4b1b3a5285953f7a9d277fdc;hpb=cb9cadad578297ffd78fa8a33670bdf1ab669e7e;p=vpp.git diff --git a/vlib/vlib/parse.c b/vlib/vlib/parse.c index 844be8aafe3..cea8f7515a0 100644 --- a/vlib/vlib/parse.c +++ b/vlib/vlib/parse.c @@ -965,8 +965,7 @@ static clib_error_t * parse_init (vlib_main_t *vm) } vec_free (bounds); - vec_sort (pm->parse_registrations, r1, r2, - rule_length_compare (r1[0], r2[0])); + vec_sort_with_function (pm->parse_registrations, rule_length_compare); for (i = 0; i < vec_len (pm->parse_registrations); i++) {