print_vnifilter_rtm_filter() adds an unnecessary level of indirection so
remove it to simplify the code.
Reviewed-by: Petr Machata <petrm@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
return 0;
}
-static int print_vnifilter_rtm_filter(struct nlmsghdr *n, void *arg)
-{
- return print_vnifilter_rtm(n, arg);
-}
-
static int vni_show(int argc, char **argv)
{
char *filter_dev = NULL;
printf("\n");
}
- ret = rtnl_dump_filter(&rth, print_vnifilter_rtm_filter, NULL);
+ ret = rtnl_dump_filter(&rth, print_vnifilter_rtm, NULL);
if (ret < 0) {
fprintf(stderr, "Dump ternminated\n");
exit(1);