From 2b6e61e353ad11937763e559e7db39e01e35bdc4 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 9 Mar 2004 17:43:46 +0000 Subject: [PATCH] Jeff Law aplay.c relies upon a GCC extension that has been removed. Specifically the "cast as lvalue" extension. This patch removes this dependency. --- aplay/aplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index f72dbec..491cb0d 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -173,7 +173,7 @@ static void usage(char *command) "-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 @@ ssize_t safe_read(int fd, void *buf, size_t count) return result > 0 ? result : res; count -= res; result += res; - (char *)buf += res; + buf = (char *)buf + res; } return result; } -- 2.47.1