diff options
author | mav <mav@FreeBSD.org> | 2009-01-10 20:49:15 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2009-01-10 20:49:15 +0000 |
commit | 2303bb091283a58b587e236f8fe832aaaaab0002 (patch) | |
tree | 5e272eb979af1f9602b4ed08e7bcdde9480696b4 /sys/dev/sound/pcm/dsp.c | |
parent | 6eabf0bd03e9c3da32647b3a6f2c22e47253afea (diff) | |
download | FreeBSD-src-2303bb091283a58b587e236f8fe832aaaaab0002.zip FreeBSD-src-2303bb091283a58b587e236f8fe832aaaaab0002.tar.gz |
Make devnode include full device path.
This makes OSSv4 osstest tool work.
Diffstat (limited to 'sys/dev/sound/pcm/dsp.c')
-rw-r--r-- | sys/dev/sound/pcm/dsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index eb4bfcb..56c1aaf 100644 --- a/sys/dev/sound/pcm/dsp.c +++ b/sys/dev/sound/pcm/dsp.c @@ -2339,7 +2339,8 @@ dsp_oss_audioinfo(struct cdev *i_dev, oss_audioinfo *ai) * @c real_device - OSSv4 docs: "Obsolete." */ ai->real_device = -1; - strlcpy(ai->devnode, devname, sizeof(ai->devnode)); + strlcpy(ai->devnode, "/dev/", sizeof(ai->devnode)); + strlcat(ai->devnode, devname, sizeof(ai->devnode)); ai->enabled = device_is_attached(d->dev) ? 1 : 0; /** * @note |