unix/unix_mphal: Use size_t instead of mp_uint_t in stdout_tx_strn decls.

This commit is contained in:
Damien George 2015-11-27 14:03:53 +00:00
parent 88a9103b3c
commit 7a5a4fe271

View File

@ -105,13 +105,13 @@ int mp_hal_stdin_rx_chr(void) {
return c;
}
void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) {
void mp_hal_stdout_tx_strn(const char *str, size_t len) {
int ret = write(1, str, len);
(void)ret; // to suppress compiler warning
}
// cooked is same as uncooked because the terminal does some postprocessing
void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len) {
void mp_hal_stdout_tx_strn_cooked(const char *str, size_t len) {
mp_hal_stdout_tx_strn(str, len);
}