mirror of
https://github.com/parasyte/alt64
synced 2024-11-02 00:05:03 -04:00
changed infinite loops from while to for
This commit is contained in:
parent
06d266e425
commit
8f063ee72a
@ -4712,7 +4712,7 @@ int main(void)
|
||||
dfs_close(fp);
|
||||
|
||||
//system main-loop with controller inputs-scan
|
||||
while (1)
|
||||
for ( ;; )
|
||||
{
|
||||
if (sound_on)
|
||||
sndUpdate();
|
||||
@ -4766,7 +4766,7 @@ int main(void)
|
||||
else
|
||||
{
|
||||
printf("Filesystem failed to start!\n");
|
||||
while (1)
|
||||
for ( ;; )
|
||||
; //never leave!
|
||||
}
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ static int MP3_SkipHdr(char* fd)
|
||||
mp3_seek(fd, offset, SEEK_SET);
|
||||
|
||||
//now seek for a sync
|
||||
while(1) {
|
||||
for ( ;;) {
|
||||
offset = mp3_seek(fd, 0, SEEK_CUR);
|
||||
size = mp3_read(fd, buf, sizeof(buf));
|
||||
|
||||
@ -333,7 +333,7 @@ static void MP3_GetInfo(long long *samples, int *rate) {
|
||||
|
||||
mad_stream_buffer (&stream, localBuffer, red);
|
||||
|
||||
while (1) {
|
||||
for ( ;; ) {
|
||||
if (mad_header_decode(&header, &stream) == -1) {
|
||||
if (stream.buffer == NULL || stream.error == MAD_ERROR_BUFLEN) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user