Module: wine Branch: refs/heads/master Commit: 343597b336551f924f1aa205fae0a40288884fa1 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=343597b336551f924f1aa205...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Sun Jul 2 14:45:06 2006 +0100
winmm/winealsa: Write-strings warning fix.
---
dlls/winmm/winealsa/audio.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index f61e1f2..9eec364 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -503,10 +503,9 @@ static int ALSA_TestDeviceForWine(int ca char pcmname[256]; int retcode; snd_pcm_hw_params_t *hwparams; - char *reason = NULL; + const char *reason = NULL; unsigned int rrate;
- /* Note that the plug: device masks out a lot of info, we want to avoid that */ sprintf(pcmname, "hw:%d,%d", card, device); retcode = snd_pcm_open(&pcm, pcmname, streamtype, SND_PCM_NONBLOCK); @@ -527,7 +526,7 @@ static int ALSA_TestDeviceForWine(int ca goto exit; }
- /* set the count of channels */ + /* set the count of channels */ retcode = snd_pcm_hw_params_set_channels(pcm, hwparams, 2); if (retcode < 0) { @@ -567,7 +566,6 @@ exit: TRACE("Discarding card %d/device %d: %s [%d(%s)]\n", card, device, reason, retcode, snd_strerror(retcode));
return retcode; - }
/**************************************************************************