Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 19:02:13 +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: r227255 - head/usr.sbin/mixer
Message-ID:  <201111061902.pA6J2DRP037013@svn.freebsd.org>

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



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