Date: Wed, 4 Dec 2013 04:29:52 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258907 - head/sbin/route Message-ID: <201312040429.rB44TqWJ045294@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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++;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312040429.rB44TqWJ045294>