commit 06131370a4e9d18e277577edddee082755513ad3
parent 52fe8eae078b027a04510715cc01b981f6879f8d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 23 Mar 2022 22:33:34 +0800
refactor(memline.c): make swapfile_unchanged() return bool (#17827)
vim-patch:8.2.4613: return type of swapfile_unchanged() is wrong
Problem: Return type of swapfile_unchanged() is wrong.
Solution: Use "int". (closes vim/vim#10000 Yeah!)
https://github.com/vim/vim/commit/3c5999e53d9f35a30abefb7224f66a75c8ffb009
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
@@ -1616,9 +1616,9 @@ static time_t swapfile_info(char_u *fname)
return x;
}
-/// Returns TRUE if the swap file looks OK and there are no changes, thus it
-/// can be safely deleted.
-static time_t swapfile_unchanged(char *fname)
+/// @return true if the swap file looks OK and there are no changes, thus it
+/// can be safely deleted.
+static bool swapfile_unchanged(char *fname)
{
struct block0 b0;
int ret = true;