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 *);
_______________________________________________
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