summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watchdogd/watchdogd.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2013-04-08 08:05:15 +0000
committered <ed@FreeBSD.org>2013-04-08 08:05:15 +0000
commite2882f43063137c60b8a5eb26c5146b4a352cb1c (patch)
tree49472a45c703eb0a59afce8d4ee0dfdee860a64e /usr.sbin/watchdogd/watchdogd.c
parent97e8e7f525e30bbde23be3aca9b829c9004b2307 (diff)
downloadFreeBSD-src-e2882f43063137c60b8a5eb26c5146b4a352cb1c.zip
FreeBSD-src-e2882f43063137c60b8a5eb26c5146b4a352cb1c.tar.gz
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
Diffstat (limited to 'usr.sbin/watchdogd/watchdogd.c')
-rw-r--r--usr.sbin/watchdogd/watchdogd.c2
1 files changed, 1 insertions, 1 deletions
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 },
OpenPOWER on IntegriCloud