summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author蒙蒙plus <[email protected]>2023-09-12 21:04:21 +0800
committerGitHub <[email protected]>2023-09-12 21:04:21 +0800
commit0391b81bb5a25894a8b3cd1f35c099dae9037e4f (patch)
tree31d3f8afd48ac369bfe46f5b685ecc085932ffa2
parent7c3d966df6402e5b975ea4d5a7345a58f4746491 (diff)
Update dfs_tmpfs.c (#8030)
-rw-r--r--components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c b/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c
index 55d2027170..7422685fd1 100644
--- a/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c
+++ b/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c
@@ -485,7 +485,7 @@ int dfs_tmpfs_stat(struct dfs_filesystem *fs,
if (d_file == NULL)
return -ENOENT;
- st->st_dev = (dev_t)dfs_filesystem_lookup(fs->path);
+ st->st_dev = (rt_device_t)dfs_filesystem_lookup(fs->path);
st->st_mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH |
S_IWUSR | S_IWGRP | S_IWOTH;
if (d_file->type == TMPFS_TYPE_DIR)