changeset 1055:50c49c976f23

Added missing declaration of variables 'err'.
author bertrand
date Fri, 08 Jun 2001 13:35:24 +0000
parents 9b0bb5c805b2
children d769cd81a215
files libao2/ao_alsa5.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa5.c	Fri Jun 08 10:56:04 2001 +0000
+++ b/libao2/ao_alsa5.c	Fri Jun 08 13:35:24 2001 +0000
@@ -237,6 +237,8 @@
 /* close audio device */
 static void uninit()
 {
+    int err;
+
     if ((err = snd_pcm_playback_drain(alsa_handler)) < 0)
     {
 	printf("alsa-uninit: playback drain error: %s\n", snd_strerror(err));
@@ -301,6 +303,7 @@
 /* resume playing, after audio_pause() */
 static void audio_resume()
 {
+    int err;
     if ((err = snd_pcm_channel_prepare(alsa_handler, SND_PCM_CHANNEL_PLAYBACK)) < 0)
     {
 	printf("alsa-resume: channel prepare error: %s\n", snd_strerror(err));