Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 19:01:48 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227252 - head/usr.sbin/devinfo
Message-ID:  <201111061901.pA6J1mj0036893@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111061901.pA6J1mj0036893>