summaryrefslogtreecommitdiffstats
path: root/alsa
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:32:44 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:32:44 +0000
commitb102348e988e4abc5d579ce13c067ce2c885aaf7 (patch)
treef7df67ce818aa8720f956171765889684c528ee1 /alsa
parentabaf87668c896d8cebcfa1081eec195cd0008740 (diff)
Fix declared with attribute warn_unused_result errors
Diffstat (limited to 'alsa')
-rw-r--r--alsa/pcm_a2dp.c4
1 files changed, 2 insertions, 2 deletions
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;
}