Small cleanup in read function

This commit is contained in:
twinaphex 2015-02-15 23:23:46 +01:00
parent ddf24f90d8
commit 52926fc736

View File

@ -5,7 +5,7 @@
static void nbio_write_test(void)
{
size_t size, prog;
bool looped=false;
bool looped = false;
void* ptr = NULL;
struct nbio_t* write = nbio_open("test.bin", NBIO_WRITE);
@ -33,7 +33,7 @@ static void nbio_write_test(void)
static void nbio_read_test(void)
{
size_t size, prog;
bool looped=false;
bool looped = false;
struct nbio_t* read = nbio_open("test.bin", NBIO_READ);
void *ptr = nbio_get_ptr(read, &size);
@ -44,7 +44,6 @@ static void nbio_read_test(void)
nbio_begin_read(read);
looped=false;
while (!nbio_iterate(read, &prog, &size))
{
printf("%u/%u\n", (unsigned)prog, (unsigned)size);