aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/fib_entry_cover.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/fib/fib_entry_cover.c')
-rw-r--r--src/vnet/fib/fib_entry_cover.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/fib/fib_entry_cover.c b/src/vnet/fib/fib_entry_cover.c
index 814df578a62..ad12b94802a 100644
--- a/src/vnet/fib/fib_entry_cover.c
+++ b/src/vnet/fib/fib_entry_cover.c
@@ -133,12 +133,12 @@ fib_entry_cover_change_one (fib_entry_t *cover,
}
else if (new_cover != covered)
{
- fib_prefix_t pfx_covered, pfx_new_cover;
+ const fib_prefix_t *pfx_covered, *pfx_new_cover;
- fib_entry_get_prefix(covered, &pfx_covered);
- fib_entry_get_prefix(new_cover, &pfx_new_cover);
+ pfx_covered = fib_entry_get_prefix(covered);
+ pfx_new_cover = fib_entry_get_prefix(new_cover);
- if (fib_prefix_is_cover(&pfx_new_cover, &pfx_covered))
+ if (fib_prefix_is_cover(pfx_new_cover, pfx_covered))
{
fib_entry_cover_changed(covered);
}