svn commit: r227252 - head/usr.sbin/devinfo

Ed Schouten ed at FreeBSD.org
Sun Nov 6 19:01:48 UTC 2011


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

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

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

Modified: head/usr.sbin/devinfo/devinfo.c
==============================================================================
--- head/usr.sbin/devinfo/devinfo.c	Sun Nov  6 19:01:41 2011	(r227251)
+++ head/usr.sbin/devinfo/devinfo.c	Sun Nov  6 19:01:48 2011	(r227252)
@@ -39,8 +39,8 @@ __FBSDID("$FreeBSD$");
 #include <unistd.h>
 #include "devinfo.h"
 
-int	rflag;
-int	vflag;
+static int	rflag;
+static int	vflag;
 
 static void	print_resource(struct devinfo_res *);
 static int	print_device_matching_resource(struct devinfo_res *, void *);


More information about the svn-src-all mailing list