]> granicus.if.org Git - vim/commitdiff
patch 8.2.4613: return type of swapfile_unchanged() is wrong v8.2.4613
authorzeertzjq <zeertzjq@outlook.com>
Wed, 23 Mar 2022 13:54:51 +0000 (13:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Mar 2022 13:54:51 +0000 (13:54 +0000)
Problem:    Return type of swapfile_unchanged() is wrong.
Solution:   Use "int". (closes #10000  Yeah!)

src/memline.c
src/version.c

index e1a4cb340d267e22122e8de3a07de124ac9d08d0..7b453cd474dcb9a7af20a41f4cb3e0f01f385a9b 100644 (file)
@@ -2261,7 +2261,7 @@ swapfile_info(char_u *fname)
  * Return TRUE if the swap file looks OK and there are no changes, thus it can
  * be safely deleted.
  */
-    static time_t
+    static int
 swapfile_unchanged(char_u *fname)
 {
     stat_T         st;
index f304ef3e6f2ecfab10d86bfb91ebbf2efab7b105..695ddaf0c7a3481eac0fdadd1ac365e8ed113c62 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4613,
 /**/
     4612,
 /**/