svn commit: r227255 - head/usr.sbin/mixer

Ed Schouten ed at FreeBSD.org
Sun Nov 6 19:02:14 UTC 2011


Author: ed
Date: Sun Nov  6 19:02:13 2011
New Revision: 227255
URL: http://svn.freebsd.org/changeset/base/227255

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

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

Modified: head/usr.sbin/mixer/mixer.c
==============================================================================
--- head/usr.sbin/mixer/mixer.c	Sun Nov  6 19:01:59 2011	(r227254)
+++ head/usr.sbin/mixer/mixer.c	Sun Nov  6 19:02:13 2011	(r227255)
@@ -24,7 +24,7 @@ __FBSDID("$FreeBSD$");
 #include <unistd.h>
 #include <sys/soundcard.h>
 
-const char	*names[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
+static const char *names[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
 
 static void	usage(int devmask, int recmask);
 static int	res_name(const char *name, int mask);


More information about the svn-src-head mailing list