mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:55:43 +01:00
Jeff Law
aplay.c relies upon a GCC extension that has been removed. Specifically the "cast as lvalue" extension. This patch removes this dependency.
This commit is contained in:
parent
9a30928540
commit
2b6e61e353
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue