software/libc: fix missing return

This commit is contained in:
Ilia Sergachev 2021-12-22 02:54:32 +01:00
parent 4c20501218
commit 5357d66c93
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ litex_getc(FILE *file)
return uart_read();
#endif
}
return -1;
}
static FILE __stdio = FDEV_SETUP_STREAM(litex_putc, litex_getc, NULL, _FDEV_SETUP_RW);