summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/modffi.c2
-rw-r--r--unix/modos.c2
-rw-r--r--unix/modtermios.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/unix/modffi.c b/unix/modffi.c
index b5ab35e7c4..c788f5dd26 100644
--- a/unix/modffi.c
+++ b/unix/modffi.c
@@ -124,7 +124,7 @@ STATIC ffi_type *char2ffi_type(char c)
STATIC ffi_type *get_ffi_type(mp_obj_t o_in)
{
if (MP_OBJ_IS_STR(o_in)) {
- uint len;
+ mp_uint_t len;
const char *s = mp_obj_str_get_data(o_in, &len);
ffi_type *t = char2ffi_type(*s);
if (t != NULL) {
diff --git a/unix/modos.c b/unix/modos.c
index 5cd78a99fb..90998bcffe 100644
--- a/unix/modos.c
+++ b/unix/modos.c
@@ -44,7 +44,7 @@
STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) {
struct stat sb;
- uint len;
+ mp_uint_t len;
const char *path = mp_obj_str_get_data(path_in, &len);
int res = stat(path, &sb);
diff --git a/unix/modtermios.c b/unix/modtermios.c
index 56e1c5e83a..f9884da903 100644
--- a/unix/modtermios.c
+++ b/unix/modtermios.c
@@ -88,7 +88,7 @@ STATIC mp_obj_t mod_termios_tcsetattr(mp_obj_t fd_in, mp_obj_t when_in, mp_obj_t
if (i == VMIN || i == VTIME) {
term.c_cc[i] = mp_obj_get_int(cc->items[i]);
} else {
- uint len;
+ mp_uint_t len;
term.c_cc[i] = *mp_obj_str_get_data(cc->items[i], &len);
}
}