summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-30 14:19:41 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-30 14:19:41 +0100
commitd182b98a37bde34c06ae705624da03cf381eb4dc (patch)
tree0e7599a07d2c3ad17be2a3a708759c07e638a20d /unix
parent9c4cbe2ac0ae4c51270f21ba9c974dd24f6b9d55 (diff)
downloadmicropython-d182b98a37bde34c06ae705624da03cf381eb4dc.tar.gz
micropython-d182b98a37bde34c06ae705624da03cf381eb4dc.zip
py: Change all uint to mp_uint_t in obj.h.
Part of code cleanup, working towards resolving issue #50.
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);
}
}