소스 검색

Update dfs_tmpfs.c (#8030)

蒙蒙plus 1 년 전
부모
커밋
0391b81bb5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c

+ 1 - 1
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)