diff --git a/components/dfs/include/dfs_init.h b/components/dfs/include/dfs_init.h index 4c927a842960c232dae28c69514c68ae3cdd88be..16afd24aab08c150921bac04e988d1617ff0706a 100644 --- a/components/dfs/include/dfs_init.h +++ b/components/dfs/include/dfs_init.h @@ -20,7 +20,7 @@ extern "C" { #endif /* Initialization of dfs */ -void dfs_init(void); +int dfs_init(void); #ifdef __cplusplus } diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 8ddb57db17f86cbe7681c8a55aa5ea63f95c767d..f5c2b5aaf894586574782cd6ef64aed0a374e747 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -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);