svn commit: r249245 - head/usr.sbin/watchdogd

Ed Schouten ed at FreeBSD.org
Mon Apr 8 08:05:16 UTC 2013


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 },


More information about the svn-src-head mailing list