From 888ddfcd1716390a477a5364929ba99b1051b592 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Tue, 23 Feb 2021 10:23:52 +0100 Subject: Update ndpi_patricia_walk_inorder API --- src/lib/third_party/src/ndpi_patricia.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/third_party/src/ndpi_patricia.c b/src/lib/third_party/src/ndpi_patricia.c index c0da14da3..c4a574f62 100644 --- a/src/lib/third_party/src/ndpi_patricia.c +++ b/src/lib/third_party/src/ndpi_patricia.c @@ -428,22 +428,22 @@ ndpi_patricia_clone (const ndpi_patricia_tree_t * const from) } size_t -ndpi_patricia_walk_inorder(ndpi_patricia_node_t *node, ndpi_void_fn2_t func) +ndpi_patricia_walk_inorder(ndpi_patricia_node_t *node, ndpi_void_fn3_t func, void *data) { size_t n = 0; assert(func); if(node->l) { - n += ndpi_patricia_walk_inorder(node->l, func); + n += ndpi_patricia_walk_inorder(node->l, func, data); } if(node->prefix) { - func(node->prefix, node->data); + func(node, node->data, data); n++; } if(node->r) { - n += ndpi_patricia_walk_inorder(node->r, func); + n += ndpi_patricia_walk_inorder(node->r, func, data); } return n; -- cgit v1.2.3