svn commit: r228416 - head/usr.sbin/powerd
Ed Schouten
ed at FreeBSD.org
Sun Dec 11 19:22:42 UTC 2011
Author: ed
Date: Sun Dec 11 19:22:42 2011
New Revision: 228416
URL: http://svn.freebsd.org/changeset/base/228416
Log:
Add missing static keyword.
All global variables and functions in powerd are marked static, except
this array of strings. Add the keyword, for consistency.
Modified:
head/usr.sbin/powerd/powerd.c
Modified: head/usr.sbin/powerd/powerd.c
==============================================================================
--- head/usr.sbin/powerd/powerd.c Sun Dec 11 18:46:14 2011 (r228415)
+++ head/usr.sbin/powerd/powerd.c Sun Dec 11 19:22:42 2011 (r228416)
@@ -71,7 +71,7 @@ typedef enum {
SRC_UNKNOWN,
} power_src_t;
-const char *modes[] = {
+static const char *modes[] = {
"AC",
"battery",
"unknown"
More information about the svn-src-head
mailing list