aboutsummaryrefslogtreecommitdiff
path: root/extmod/vfs.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-25 19:48:44 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-29 12:56:45 +1100
commit204ded848e114208b8ecef0b683df71b77af5b5a (patch)
tree9b532349baf23d0f04d7a2e6b36cc3a7bcb9d32c /extmod/vfs.c
parent6b341075376705ee1fe9e003b76b09afa59778f4 (diff)
extmod: Update for changes to mp_obj_str_get_data.
Diffstat (limited to 'extmod/vfs.c')
-rw-r--r--extmod/vfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/vfs.c b/extmod/vfs.c
index 3ab8261dd..e389ab324 100644
--- a/extmod/vfs.c
+++ b/extmod/vfs.c
@@ -134,7 +134,7 @@ mp_obj_t mp_vfs_mount(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args
mp_arg_parse_all(n_args - 2, pos_args + 2, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
// get the mount point
- mp_uint_t mnt_len;
+ size_t mnt_len;
const char *mnt_str = mp_obj_str_get_data(pos_args[1], &mnt_len);
// see if we need to auto-detect and create the filesystem
@@ -180,7 +180,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(mp_vfs_mount_obj, 2, mp_vfs_mount);
mp_obj_t mp_vfs_umount(mp_obj_t mnt_in) {
// remove vfs from the mount table
mp_vfs_mount_t *vfs = NULL;
- mp_uint_t mnt_len;
+ size_t mnt_len;
const char *mnt_str = NULL;
if (MP_OBJ_IS_STR(mnt_in)) {
mnt_str = mp_obj_str_get_data(mnt_in, &mnt_len);