Author: ed Date: Mon Apr 8 08:05:15 2013 New Revision: 249245 URL: http://svnweb.freebsd.org/changeset/base/249245
Log: Mark the act_tbl static/const. This table is only used within this source file and is only accessed read-only. MFC after: 1 week Modified: head/usr.sbin/watchdogd/watchdogd.c Modified: head/usr.sbin/watchdogd/watchdogd.c ============================================================================== --- head/usr.sbin/watchdogd/watchdogd.c Mon Apr 8 08:03:42 2013 (r249244) +++ head/usr.sbin/watchdogd/watchdogd.c Mon Apr 8 08:05:15 2013 (r249245) @@ -455,7 +455,7 @@ struct act_tbl { int at_value; }; -struct act_tbl act_tbl[] = { +static const struct act_tbl act_tbl[] = { { "panic", WD_SOFT_PANIC }, { "ddb", WD_SOFT_DDB }, { "log", WD_SOFT_LOG }, _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"