Changed while loops to for

Changed while loops to for - redox-os/relibc#128
4 jobs from whiletofor in 7 minutes and 44 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #12273
build:linux

00:07:28

failed #12274
build:redox

00:07:44

 
  Test
skipped #12276
allowed to fail
fmt
skipped #12275
test:linux
 
Name Stage Failure
failed
build:redox Build
/builds/MaikuZ/relibc/prefix/bin/../lib/gcc/x86_64-unknown-redox/8.2.0/../../../../x86_64-unknown-redox/bin/ld: target/x86_64-unknown-redox/release/librelibc.patched.a(relibc-7a5cf210163cf39d.relibc.71gmknm7-cgu.15.rcgu.o): in function `exit':
relibc.71gmknm7-cgu.15:(.text.exit+0x1ed): undefined reference to `_fini'
/builds/MaikuZ/relibc/prefix/bin/../lib/gcc/x86_64-unknown-redox/8.2.0/../../../../x86_64-unknown-redox/bin/ld: target/x86_64-unknown-redox/release/librelibc.patched.a(relibc-7a5cf210163cf39d.relibc.71gmknm7-cgu.5.rcgu.o): in function `relibc_start':
relibc.71gmknm7-cgu.5:(.text.relibc_start+0x18c): undefined reference to `_init'
/builds/MaikuZ/relibc/prefix/bin/../lib/gcc/x86_64-unknown-redox/8.2.0/../../../../x86_64-unknown-redox/bin/ld: relibc.71gmknm7-cgu.5:(.text.relibc_start+0x1bd): undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:137: recipe for target '"target/x86_64-unknown-redox"/release/libc.so' failed
make: *** ["target/x86_64-unknown-redox"/release/libc.so] Error 1
ERROR: Job failed: exit code 1