diff --git a/lfs.c b/lfs.c index e2ab1e5..c8583ae 100644 --- a/lfs.c +++ b/lfs.c @@ -1062,7 +1062,7 @@ static int lfs_dir_find_match(void *data, return LFS_CMP_EQ; } -static int lfs_dir_find(lfs_t *lfs, lfs_mdir_t *dir, +static lfs_stag_t lfs_dir_find(lfs_t *lfs, lfs_mdir_t *dir, const char **path, uint16_t *id) { // we reduce path to a single name if we can find it const char *name = *path;