From c26fdd0aaa92623def76c6fdfff8d4e15637d001 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 19 Oct 2009 10:02:00 +0000 Subject: [PATCH] Fixed bug #857 Fixed compiler warnings --- src/audio/alsa/SDL_alsa_audio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c index edc655ed4..e3ce98528 100644 --- a/src/audio/alsa/SDL_alsa_audio.c +++ b/src/audio/alsa/SDL_alsa_audio.c @@ -381,7 +381,7 @@ static int ALSA_finalize_hardware(_THIS, SDL_AudioSpec *spec, snd_pcm_hw_params_ /* This is useful for debugging */ if ( getenv("SDL_AUDIO_ALSA_DEBUG") ) { - snd_pcm_sframes_t persize = 0; + snd_pcm_uframes_t persize = 0; unsigned int periods = 0; SDL_NAME(snd_pcm_hw_params_get_period_size)(hwparams, &persize, NULL); @@ -467,7 +467,6 @@ static int ALSA_OpenAudio(_THIS, SDL_AudioSpec *spec) snd_pcm_format_t format; unsigned int rate; unsigned int channels; - snd_pcm_uframes_t bufsize; Uint16 test_format; /* Open the audio device */