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 <[email protected]>

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++;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to