Update dfs_tmpfs.c (#8030)

This commit is contained in:
蒙蒙plus 2023-09-12 21:04:21 +08:00 committed by GitHub
parent 7c3d966df6
commit 0391b81bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)