style: make linter happy with fileio.c

This commit is contained in:
Said Al Attrach 2019-03-11 12:31:14 +01:00
parent b4d894c067
commit f4c2de4c45
No known key found for this signature in database
GPG Key ID: E528966F5C473A35

View File

@ -2763,7 +2763,7 @@ buf_write (
if (backup_copy) { if (backup_copy) {
char_u *wp; char_u *wp;
int some_error = FALSE; int some_error = false;
char_u *dirp; char_u *dirp;
char_u *rootname; char_u *rootname;
@ -2848,9 +2848,11 @@ buf_write (
/* remove old backup, if present */ /* remove old backup, if present */
os_remove((char *)backup); os_remove((char *)backup);
/* copy the file */ // copy the file
if (os_copy((char *)fname, (char *)backup, UV_FS_COPYFILE_FICLONE) != 0) { if (os_copy((char *)fname, (char *)backup, UV_FS_COPYFILE_FICLONE)
SET_ERRMSG(_("E506: Can't write to backup file (add ! to override)")); != 0) {
SET_ERRMSG(_("E506: Can't write to backup file "
"(add ! to override)"));
} }
#ifdef UNIX #ifdef UNIX
@ -3452,7 +3454,8 @@ restore_backup:
} }
// copy the file. // copy the file.
if (os_copy((char *)backup, (char *)fname, UV_FS_COPYFILE_FICLONE) == 0) { if (os_copy((char *)backup, (char *)fname, UV_FS_COPYFILE_FICLONE)
== 0) {
end = 1; end = 1;
} }
} else { } else {