From 1ad5a86fe65bf743f218a685bd31a5858402d019 Mon Sep 17 00:00:00 2001 From: Hotakus <553070703@qq.com> Date: Tue, 2 Nov 2021 19:53:15 +0800 Subject: [PATCH] fix(template) prototype error (#2755) --- examples/porting/lv_port_fs_template.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/porting/lv_port_fs_template.c b/examples/porting/lv_port_fs_template.c index 2d3ec862c..7fb3d5e60 100644 --- a/examples/porting/lv_port_fs_template.c +++ b/examples/porting/lv_port_fs_template.c @@ -25,15 +25,15 @@ **********************/ static void fs_init(void); -static lv_fs_res_t fs_open(lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t mode); +static void * fs_open(lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t mode); static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p); static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * br); static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint32_t * bw); -static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);); +static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence); static lv_fs_res_t fs_size(lv_fs_drv_t * drv, void * file_p, uint32_t * size_p); static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p); -static lv_fs_res_t fs_dir_open(lv_fs_drv_t * drv, void * rddir_p, const char *path); +static void * fs_dir_open(lv_fs_drv_t * drv, const char *path); static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * rddir_p, char * fn); static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * rddir_p); @@ -217,7 +217,7 @@ static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p) * @param path path to a directory * @return pointer to the directory read descriptor or NULL on error */ -static void * fs_dir_open(lv_fs_drv_t * drv, void * rddir_p, const char *path) +static void * fs_dir_open(lv_fs_drv_t * drv, const char *path) { void * dir = NULL; /*Add your code here*/