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!)
3c5999e53d
This commit is contained in:
zeertzjq
2022-03-23 22:33:34 +08:00
committed by GitHub
parent 52fe8eae07
commit 06131370a4

View File

@@ -1616,9 +1616,9 @@ static time_t swapfile_info(char_u *fname)
return x; return x;
} }
/// Returns TRUE if the swap file looks OK and there are no changes, thus it /// @return true if the swap file looks OK and there are no changes, thus it
/// can be safely deleted. /// can be safely deleted.
static time_t swapfile_unchanged(char *fname) static bool swapfile_unchanged(char *fname)
{ {
struct block0 b0; struct block0 b0;
int ret = true; int ret = true;