提交 9acd018c 编写于 作者: B Bernard Xiong

fix compiling warning

上级 88c9bc2d
...@@ -20,7 +20,7 @@ extern "C" { ...@@ -20,7 +20,7 @@ extern "C" {
#endif #endif
/* Initialization of dfs */ /* Initialization of dfs */
void dfs_init(void); int dfs_init(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -42,7 +42,7 @@ struct dfs_fd fd_table[DFS_FD_MAX]; ...@@ -42,7 +42,7 @@ struct dfs_fd fd_table[DFS_FD_MAX];
/** /**
* this function will initialize device file system. * this function will initialize device file system.
*/ */
void dfs_init(void) int dfs_init(void)
{ {
/* clear filesystem operations table */ /* clear filesystem operations table */
rt_memset((void *)filesystem_operation_table, 0, sizeof(filesystem_operation_table)); rt_memset((void *)filesystem_operation_table, 0, sizeof(filesystem_operation_table));
...@@ -59,6 +59,7 @@ void dfs_init(void) ...@@ -59,6 +59,7 @@ void dfs_init(void)
rt_memset(working_directory, 0, sizeof(working_directory)); rt_memset(working_directory, 0, sizeof(working_directory));
working_directory[0] = '/'; working_directory[0] = '/';
#endif #endif
return 0;
} }
INIT_COMPONENT_EXPORT(dfs_init); INIT_COMPONENT_EXPORT(dfs_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册