aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-09 14:19:21 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-09 14:19:26 -0400
commitfc8965787b136bb0e34c4beda7da04786337ea1d (patch)
treed0bb65cc53b74927b09fca2064792f058ea4f797
parente36fce75fb94461bccd8ebbcb5f544e39f85da2d (diff)
downloadrneovim-fc8965787b136bb0e34c4beda7da04786337ea1d.tar.gz
rneovim-fc8965787b136bb0e34c4beda7da04786337ea1d.tar.bz2
rneovim-fc8965787b136bb0e34c4beda7da04786337ea1d.zip
memline: fnamecmp_ino() returns bool
-rw-r--r--src/nvim/memline.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index dfd44487d7..3d5f4e8f3a 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -3532,10 +3532,9 @@ static int b0_magic_wrong(ZERO_BL *b0p)
* without making the block 0 incompatible with 32 bit versions.
*/
-static int
-fnamecmp_ino (
- char_u *fname_c, /* current file name */
- char_u *fname_s, /* file name from swap file */
+static bool fnamecmp_ino(
+ char_u *fname_c, // current file name
+ char_u *fname_s, // file name from swap file
long ino_block0
)
{
@@ -3582,7 +3581,7 @@ fnamecmp_ino (
if (ino_s == 0 && ino_c == 0 && retval_c == FAIL && retval_s == FAIL) {
return STRCMP(fname_c, fname_s) != 0;
}
- return TRUE;
+ return true;
}
/*