rolo.c: Change 'int errno' to 'int err'

It can cause issues if errno.h finds itself included there

Change-Id: Id5d2be66cd3af4c2760e4a37d3332853e9b54f95
This commit is contained in:
Michael Sevakis 2017-11-07 16:48:07 -05:00
parent 826f99e187
commit 63eae4339a

View file

@ -218,7 +218,7 @@ int rolo_load(const char* filename)
unsigned char* ramstart = (void*)&loadaddress;
unsigned char* filebuf;
size_t filebuf_size;
int errno, length;
int err, length;
lcd_clear_display();
lcd_puts(0, 0, "ROLO...");
@ -238,15 +238,15 @@ int rolo_load(const char* filename)
rolo_handle = core_alloc_maximum("rolo", &filebuf_size, NULL);
filebuf = core_get_data(rolo_handle);
errno = LOAD_FIRMWARE(filebuf, filename, filebuf_size);
err = LOAD_FIRMWARE(filebuf, filename, filebuf_size);
if (errno <= 0)
if (err <= 0)
{
rolo_error(loader_strerror(errno));
rolo_error(loader_strerror(err));
return -1;
}
else
length = errno;
length = err;
#if defined(CPU_PP) && NUM_CORES > 1
lcd_puts(0, 2, "Waiting for coprocessor...");