From e2882f43063137c60b8a5eb26c5146b4a352cb1c Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 8 Apr 2013 08:05:15 +0000 Subject: 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 --- usr.sbin/watchdogd/watchdogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/watchdogd/watchdogd.c') diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c index e255e07..5416751 100644 --- a/usr.sbin/watchdogd/watchdogd.c +++ b/usr.sbin/watchdogd/watchdogd.c @@ -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 }, -- cgit v1.1