From 204b325facd640623f15c72dc4bc4567d2eee35c Mon Sep 17 00:00:00 2001 From: guodi Date: Mon, 22 Aug 2022 11:01:37 +0800 Subject: [PATCH] [Fix bug] fix type error in function "cat" Signed-off-by: guodi --- components/dfs/src/dfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index eb9ca3a167..2be7552d89 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -834,7 +834,7 @@ FINSH_FUNCTION_EXPORT(rm, remove files or directories); void cat(const char *filename) { struct dfs_fd fd; - uint32_t length = 0; + int length = 0; char buffer[81]; fd_init(&fd); -- Gitee