Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2013 08:05:16 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249245 - head/usr.sbin/watchdogd
Message-ID:  <201304080805.r3885Gvj087995@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 },



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304080805.r3885Gvj087995>