aboutsummaryrefslogtreecommitdiff
path: root/sbin/route/route.c
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2013-12-04 04:29:52 +0000
committerEitan Adler <eadler@FreeBSD.org>2013-12-04 04:29:52 +0000
commit4cb3201829bec7c5691b419c3fed859c15adb730 (patch)
treefb90d724f7384c1d7e7ddee0701be204693c90f0 /sbin/route/route.c
parentdf0888760aced6ff52776776af61e01c22b40f5b (diff)
downloadsrc-4cb3201829bec7c5691b419c3fed859c15adb730.tar.gz
src-4cb3201829bec7c5691b419c3fed859c15adb730.zip
Add const qualifier where appropriate
Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Notes
Notes: svn path=/head/; revision=258907
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r--sbin/route/route.c4
1 files 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++;