aboutsummaryrefslogtreecommitdiffstats
path: root/vlib/vlib/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'vlib/vlib/parse.c')
-rw-r--r--vlib/vlib/parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vlib/vlib/parse.c b/vlib/vlib/parse.c
index 844be8aa..cea8f751 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++)
{