From 698eaa9289385ac36023849257c24c5bb622f87b Mon Sep 17 00:00:00 2001 From: eadler Date: Wed, 4 Dec 2013 04:29:52 +0000 Subject: [PATCH] Add const qualifier where appropriate Submitted by: Sebastian Huber --- sbin/route/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/route/route.c b/sbin/route/route.c index e05e3fce0b5c..6099ddcfa1c5 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$"); static struct keytab { const char *kt_cp; int kt_i; -} keywords[] = { +} const keywords[] = { #include "keywords.h" {0, 0} }; @@ -1848,7 +1848,7 @@ printb(int b, const char *str) int keyword(const char *cp) { - struct keytab *kt = keywords; + const struct keytab *kt = keywords; while (kt->kt_cp != NULL && strcmp(kt->kt_cp, cp) != 0) kt++;