aboutsummaryrefslogtreecommitdiff
path: root/extmod/vfs.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-05-10 12:30:34 +1000
committerDamien George <damien.p.george@gmail.com>2017-05-10 12:30:34 +1000
commitd70f688f25a76e1e6a251a4ffc5144539c1a4e64 (patch)
tree0fe48574b216d1b9012f8bbf46c9c7ce446aa6e6 /extmod/vfs.c
parentf1609bc843f1c30117cf9dfae8fb22ee36512446 (diff)
extmod/vfs: Use MP_S_IFDIR, MP_S_IFREG consts instead of magic numbers.
Diffstat (limited to 'extmod/vfs.c')
-rw-r--r--extmod/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/vfs.c b/extmod/vfs.c
index 8db7d5e44..f158bd387 100644
--- a/extmod/vfs.c
+++ b/extmod/vfs.c
@@ -408,7 +408,7 @@ mp_obj_t mp_vfs_stat(mp_obj_t path_in) {
mp_vfs_mount_t *vfs = lookup_path(path_in, &path_out);
if (vfs == MP_VFS_ROOT) {
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(10, NULL));
- t->items[0] = MP_OBJ_NEW_SMALL_INT(0x4000); // st_mode = stat.S_IFDIR
+ t->items[0] = MP_OBJ_NEW_SMALL_INT(MP_S_IFDIR); // st_mode
for (int i = 1; i <= 9; ++i) {
t->items[i] = MP_OBJ_NEW_SMALL_INT(0); // dev, nlink, uid, gid, size, atime, mtime, ctime
}