summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apm/apm.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 19:01:30 +0000
committered <ed@FreeBSD.org>2011-11-06 19:01:30 +0000
commit13541c14c5b0db85e19d8da986d0b2fb2c0ccf19 (patch)
treee0653dfebcc890786a19cd549b45fcf7c33e3c77 /usr.sbin/apm/apm.c
parent8cbc1bac70435cc703634a1f7aee6be4d7a97569 (diff)
downloadFreeBSD-src-13541c14c5b0db85e19d8da986d0b2fb2c0ccf19.zip
FreeBSD-src-13541c14c5b0db85e19d8da986d0b2fb2c0ccf19.tar.gz
Mark global functions and/or variables in apm(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Diffstat (limited to 'usr.sbin/apm/apm.c')
-rw-r--r--usr.sbin/apm/apm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c
index b4c34ab..05652da 100644
--- a/usr.sbin/apm/apm.c
+++ b/usr.sbin/apm/apm.c
@@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
#define xl(a) ((a) & 0xff)
#define APMERR(a) xh(a)
-int cmos_wall = 0; /* True when wall time is in cmos clock, else UTC */
+static int cmos_wall = 0; /* True when wall time is in cmos clock, else UTC */
static void
usage(void)
OpenPOWER on IntegriCloud