mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
Small cleanup in read function
This commit is contained in:
parent
ddf24f90d8
commit
52926fc736
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user