Author: ed
Date: Sun Nov  6 19:01:30 2011
New Revision: 227249
URL: http://svn.freebsd.org/changeset/base/227249

Log:
  Mark global functions and/or variables in apm(8) static where possible.
  
  This allows compilers and static analyzers to do more thorough analysis.

Modified:
  head/usr.sbin/apm/apm.c

Modified: head/usr.sbin/apm/apm.c
==============================================================================
--- head/usr.sbin/apm/apm.c     Sun Nov  6 18:59:42 2011        (r227248)
+++ head/usr.sbin/apm/apm.c     Sun Nov  6 19:01:30 2011        (r227249)
@@ -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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to