summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/sound.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-08 05:24:21 +0000
committerpeter <peter@FreeBSD.org>2001-06-08 05:24:21 +0000
commit4b91e2ecf0aa1bb9c2c89a4f0ef1701e5aec268f (patch)
tree86b0161dd1235a75cc934e1a85ca5844895edd8f /sys/dev/sound/pcm/sound.c
parentaa18b0b03200ae9ae0c0f42a9a5253d50a170e64 (diff)
downloadFreeBSD-src-4b91e2ecf0aa1bb9c2c89a4f0ef1701e5aec268f.zip
FreeBSD-src-4b91e2ecf0aa1bb9c2c89a4f0ef1701e5aec268f.tar.gz
"Fix" the previous initial attempt at fixing TUNABLE_INT(). This time
around, use a common function for looking up and extracting the tunables from the kernel environment. This saves duplicating the same function over and over again. This way typically has an overhead of 8 bytes + the path string, versus about 26 bytes + the path string.
Diffstat (limited to 'sys/dev/sound/pcm/sound.c')
-rw-r--r--sys/dev/sound/pcm/sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index 7db70f9..da3c05e 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -93,7 +93,7 @@ static devclass_t pcm_devclass;
#ifdef USING_DEVFS
static int snd_unit = 0;
-TUNABLE_INT("hw.snd.unit", snd_unit);
+TUNABLE_INT("hw.snd.unit", &snd_unit);
#endif
SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD, 0, "Sound driver");
OpenPOWER on IntegriCloud