Mercurial > vim
comparison src/memline.c @ 28175:3cc909ea91a8 v8.2.4613
patch 8.2.4613: return type of swapfile_unchanged() is wrong
Commit: https://github.com/vim/vim/commit/3c5999e53d9f35a30abefb7224f66a75c8ffb009
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Mar 23 13:54:51 2022 +0000
patch 8.2.4613: return type of swapfile_unchanged() is wrong
Problem: Return type of swapfile_unchanged() is wrong.
Solution: Use "int". (closes https://github.com/vim/vim/issues/10000 Yeah!)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Mar 2022 15:00:04 +0100 |
parents | c1d1639b52dd |
children | 427600f3b1c5 |
comparison
equal
deleted
inserted
replaced
28174:da9fe882032a | 28175:3cc909ea91a8 |
---|---|
2259 | 2259 |
2260 /* | 2260 /* |
2261 * Return TRUE if the swap file looks OK and there are no changes, thus it can | 2261 * Return TRUE if the swap file looks OK and there are no changes, thus it can |
2262 * be safely deleted. | 2262 * be safely deleted. |
2263 */ | 2263 */ |
2264 static time_t | 2264 static int |
2265 swapfile_unchanged(char_u *fname) | 2265 swapfile_unchanged(char_u *fname) |
2266 { | 2266 { |
2267 stat_T st; | 2267 stat_T st; |
2268 int fd; | 2268 int fd; |
2269 struct block0 b0; | 2269 struct block0 b0; |