From owner-svn-src-all@FreeBSD.ORG Mon Apr 8 08:05:16 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5107CCDC; Mon, 8 Apr 2013 08:05:16 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 42B4D90E; Mon, 8 Apr 2013 08:05:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3885GnU087997; Mon, 8 Apr 2013 08:05:16 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3885Gvj087995; Mon, 8 Apr 2013 08:05:16 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201304080805.r3885Gvj087995@svn.freebsd.org> From: Ed Schouten Date: Mon, 8 Apr 2013 08:05:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249245 - head/usr.sbin/watchdogd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Apr 2013 08:05:16 -0000 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 },