svn commit: r258907 - head/sbin/route
Eitan Adler
eadler at FreeBSD.org
Wed Dec 4 04:29:52 UTC 2013
Author: eadler
Date: Wed Dec 4 04:29:52 2013
New Revision: 258907
URL: http://svnweb.freebsd.org/changeset/base/258907
Log:
Add const qualifier where appropriate
Submitted by: Sebastian Huber <sebastian.huber at embedded-brains.de>
Modified:
head/sbin/route/route.c
Modified: head/sbin/route/route.c
==============================================================================
--- head/sbin/route/route.c Wed Dec 4 04:28:49 2013 (r258906)
+++ head/sbin/route/route.c Wed Dec 4 04:29:52 2013 (r258907)
@@ -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++;
More information about the svn-src-head
mailing list