Update of /cvsroot/alsa/alsa-utils/aplay
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21804

Modified Files:
        aplay.c 
Log Message:
Jeff Law
aplay.c relies upon a GCC extension that has been removed.
Specifically the "cast as lvalue" extension. This patch removes
this dependency.


Index: aplay.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/aplay/aplay.c,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -r1.177 -r1.178
--- aplay.c     9 Mar 2004 13:18:29 -0000       1.177
+++ aplay.c     9 Mar 2004 17:43:46 -0000       1.178
@@ -173,7 +173,7 @@
 "-I, --separate-channels one file for each channel\n"
                , command);
        fprintf(stderr, "Recognized sample formats are:");
-       for (k = 0; k < SND_PCM_FORMAT_LAST; ++(unsigned long) k) {
+       for (k = 0; k < SND_PCM_FORMAT_LAST; ++k) {
                const char *s = snd_pcm_format_name(k);
                if (s)
                        fprintf(stderr, " %s", s);
@@ -588,7 +588,7 @@
                        return result > 0 ? result : res;
                count -= res;
                result += res;
-               (char *)buf += res;
+               buf = (char *)buf + res;
        }
        return result;
 }



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to