winmm/winealsa: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Wed Jun 7 16:12:06 CDT 2006


Some spurious white spaces eliminated, too.
---
Changelog:
    winmm/winealsa: Write-strings warnings fix.

diff -urN a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c
--- a/dlls/winmm/winealsa/audio.c	2006-05-23 17:25:09.000000000 +0100
+++ b/dlls/winmm/winealsa/audio.c	2006-06-07 21:47:22.000000000 +0100
@@ -503,10 +503,9 @@
     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 @@
         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 @@
         TRACE("Discarding card %d/device %d:  %s [%d(%s)]\n", card, device, 
reason, retcode, snd_strerror(retcode));
 
     return retcode;
-
 }
 
 /**************************************************************************



More information about the wine-patches mailing list