From 06131370a4e9d18e277577edddee082755513ad3 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 23 Mar 2022 22:33:34 +0800 Subject: 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 --- src/nvim/memline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 5d62ddc912..9f8523eb3e 100644 --- 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; -- cgit