From 35518f541959416be5c7624a1041226a04093f1b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 22 Mar 2020 17:14:32 -0400 Subject: [PATCH] lib: make is_default_host_route use a const struct prefix Signed-off-by: Donald Sharp --- lib/prefix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prefix.h b/lib/prefix.h index b01f7d1fdc..51b3dacb8d 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -531,7 +531,7 @@ static inline int is_host_route(struct prefix *p) return 0; } -static inline int is_default_host_route(struct prefix *p) +static inline int is_default_host_route(const struct prefix *p) { if (p->family == AF_INET) { return (p->u.prefix4.s_addr == INADDR_ANY &&