fix compiling warning

This commit is contained in:
Bernard Xiong 2013-06-23 07:57:22 +08:00
parent 88c9bc2d64
commit 9acd018cbb
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ extern "C" {
#endif
/* Initialization of dfs */
void dfs_init(void);
int dfs_init(void);
#ifdef __cplusplus
}

View File

@ -42,7 +42,7 @@ struct dfs_fd fd_table[DFS_FD_MAX];
/**
* this function will initialize device file system.
*/
void dfs_init(void)
int dfs_init(void)
{
/* clear filesystem operations table */
rt_memset((void *)filesystem_operation_table, 0, sizeof(filesystem_operation_table));
@ -59,6 +59,7 @@ void dfs_init(void)
rt_memset(working_directory, 0, sizeof(working_directory));
working_directory[0] = '/';
#endif
return 0;
}
INIT_COMPONENT_EXPORT(dfs_init);