lib: make is_default_host_route use a const struct prefix

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2020-03-22 17:14:32 -04:00
parent 3f1ba9b836
commit 35518f5419

View File

@ -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 &&