From b102348e988e4abc5d579ce13c067ce2c885aaf7 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 26 Jul 2006 13:32:44 +0000 Subject: Fix declared with attribute warn_unused_result errors --- alsa/pcm_a2dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alsa') diff --git a/alsa/pcm_a2dp.c b/alsa/pcm_a2dp.c index 89a53211..fef13941 100644 --- a/alsa/pcm_a2dp.c +++ b/alsa/pcm_a2dp.c @@ -110,7 +110,7 @@ static snd_pcm_sframes_t a2dp_transfer(snd_pcm_ioplug_t *io, { snd_pcm_a2dp_t *a2dp = io->private_data; unsigned char *buf; - int len; + int err, len; buf = (unsigned char *) areas->addr + (areas->first + areas->step * offset) / 8; @@ -119,7 +119,7 @@ static snd_pcm_sframes_t a2dp_transfer(snd_pcm_ioplug_t *io, return len; if (a2dp->len + a2dp->sbc.len > sizeof(a2dp->buf)) { - write(a2dp->sk, a2dp->buf, a2dp->len); + err = write(a2dp->sk, a2dp->buf, a2dp->len); a2dp->len = 0; } -- cgit