diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 13:32:44 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 13:32:44 +0000 | 
| commit | b102348e988e4abc5d579ce13c067ce2c885aaf7 (patch) | |
| tree | f7df67ce818aa8720f956171765889684c528ee1 /alsa/pcm_a2dp.c | |
| parent | abaf87668c896d8cebcfa1081eec195cd0008740 (diff) | |
Fix declared with attribute warn_unused_result errors
Diffstat (limited to 'alsa/pcm_a2dp.c')
| -rw-r--r-- | alsa/pcm_a2dp.c | 4 | 
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;  	} | 
