summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/sound.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
committerpeter <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
commit0732738ec450bcfa11cfc73cc53b16c92c4a5e9a (patch)
tree58ecfe664c4cc2fd28db0c76b33469ccff8dee55 /sys/dev/sound/pcm/sound.c
parent1127de3ac7859c762c70d8deecce993108ef82f3 (diff)
downloadFreeBSD-src-0732738ec450bcfa11cfc73cc53b16c92c4a5e9a.zip
FreeBSD-src-0732738ec450bcfa11cfc73cc53b16c92c4a5e9a.tar.gz
Make the TUNABLE_*() macros look and behave more consistantly like the
SYSCTL_*() macros. TUNABLE_INT_DECL() was an odd name because it didn't actually declare the int, which is what the name suggests it would do.
Diffstat (limited to 'sys/dev/sound/pcm/sound.c')
-rw-r--r--sys/dev/sound/pcm/sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index 7fb6951..a9590a3 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -92,8 +92,8 @@ nomenclature:
static devclass_t pcm_devclass;
#ifdef USING_DEVFS
-static int snd_unit;
-TUNABLE_INT_DECL("hw.snd.unit", 0, snd_unit);
+static int snd_unit = 0;
+TUNABLE_INT("hw.snd.unit", &snd_unit);
#endif
SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD, 0, "Sound driver");
OpenPOWER on IntegriCloud