summaryrefslogtreecommitdiff
path: root/lib/nexthop.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nexthop.c')
-rw-r--r--lib/nexthop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nexthop.c b/lib/nexthop.c
index 655a596f50..f314fea697 100644
--- a/lib/nexthop.c
+++ b/lib/nexthop.c
@@ -201,7 +201,7 @@ int nexthop_same_firsthop(struct nexthop *next1, struct nexthop *next2)
*/
const char *nexthop_type_to_str(enum nexthop_types_t nh_type)
{
- static const char *desc[] = {
+ static const char *const desc[] = {
"none", "Directly connected",
"IPv4 nexthop", "IPv4 nexthop with ifindex",
"IPv6 nexthop", "IPv6 nexthop with ifindex",