diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c index c9812181a..08218b146 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -105,7 +105,7 @@ int dfs_elm_mount(struct dfs_filesystem *fs, unsigned long rwflag, const void *d if (result == FR_OK) { extern FRESULT chk_mounted(const TCHAR **path, FATFS **rfs, BYTE chk_wp); - extern void leavefs(FATFS* fs, int res); + extern int leavefs(FATFS* fs, int res); char driver[16]; const char * path; DIR dj; diff --git a/components/dfs/filesystems/elmfat/ff.c b/components/dfs/filesystems/elmfat/ff.c index ea09720d3..c8c27f6c0 100644 --- a/components/dfs/filesystems/elmfat/ff.c +++ b/components/dfs/filesystems/elmfat/ff.c @@ -4020,7 +4020,7 @@ int elm_get_vol(FATFS *fat) } #endif -void leavefs(FATFS* fs, int res) +int leavefs(FATFS* fs, int res) { LEAVE_FF(fs, res); }