summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mixer
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 19:02:13 +0000
committered <ed@FreeBSD.org>2011-11-06 19:02:13 +0000
commit63fd44ffc00e62401ff37cc01e3fbe677786cf2a (patch)
treea7748c1488ff8d7f40d86fd6bed14bb6251262c8 /usr.sbin/mixer
parent5e4b02fe9780f4d6ea81376bcad46e2cf70b5eb3 (diff)
downloadFreeBSD-src-63fd44ffc00e62401ff37cc01e3fbe677786cf2a.zip
FreeBSD-src-63fd44ffc00e62401ff37cc01e3fbe677786cf2a.tar.gz
Mark global functions and/or variables in mixer(8) static where possible.
This allows compilers and static analyzers to do more thorough analysis.
Diffstat (limited to 'usr.sbin/mixer')
-rw-r--r--usr.sbin/mixer/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c
index 52997bc..245fb06 100644
--- a/usr.sbin/mixer/mixer.c
+++ b/usr.sbin/mixer/mixer.c
@@ -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);
OpenPOWER on IntegriCloud