summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-06-10 15:48:04 +0000
committerdes <des@FreeBSD.org>2001-06-10 15:48:04 +0000
commit23c38e4e7c8ac5370802f5158ea3085e8d58081a (patch)
treebf847b257ccd40d68502d78a22a262be3f3bcdd9 /sys/dev/sound/pcm
parentadd2afe54c2e0bce5ea9cd2a11cabc257bd6cbb3 (diff)
downloadFreeBSD-src-23c38e4e7c8ac5370802f5158ea3085e8d58081a.zip
FreeBSD-src-23c38e4e7c8ac5370802f5158ea3085e8d58081a.tar.gz
sbuf_new(9) now returns a struct sbuf * instead of an int. If the caller
does not provide a struct sbuf, sbuf_new(9) will allocate one and return a pointer to it.
Diffstat (limited to 'sys/dev/sound/pcm')
-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 da3c05e..7e693e3 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -881,7 +881,7 @@ do_status(int action, struct uio *buf)
case 0: /* open */
if (status_open)
return EBUSY;
- if (sbuf_new(&s, NULL, 4096, 0))
+ if (sbuf_new(&s, NULL, 4096, 0) == NULL)
return ENXIO;
bufptr = 0;
err = (status_init(&s) > 0)? 0 : ENOMEM;
OpenPOWER on IntegriCloud