diff options
author | Pavel Platto <hinidu@gmail.com> | 2014-08-16 09:21:09 +0300 |
---|---|---|
committer | Pavel Platto <hinidu@gmail.com> | 2014-08-16 09:21:09 +0300 |
commit | 8f4ada5a2a5c1bfe546cf7d67d3531551ff6026c (patch) | |
tree | ddaeba90f80c4cbd86667e2b9a2197c8ddecd376 | |
parent | 3af741c087bd727dd7fd7c4f5c5fc48eddee8851 (diff) | |
download | rneovim-8f4ada5a2a5c1bfe546cf7d67d3531551ff6026c.tar.gz rneovim-8f4ada5a2a5c1bfe546cf7d67d3531551ff6026c.tar.bz2 rneovim-8f4ada5a2a5c1bfe546cf7d67d3531551ff6026c.zip |
os_fchown: remove cast of parameter -1 to uid_t
-rw-r--r-- | src/nvim/fileio.c | 2 | ||||
-rw-r--r-- | src/nvim/undo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 5d09250513..e1f9454b52 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -2901,7 +2901,7 @@ buf_write ( * others. */ if (file_info_new.stat.st_gid != file_info_old.stat.st_gid - && os_fchown(bfd, (uid_t)-1, file_info_old.stat.st_gid) != 0) { + && os_fchown(bfd, -1, file_info_old.stat.st_gid) != 0) { os_setperm(backup, (perm & 0707) | ((perm & 07) << 3)); } # ifdef HAVE_SELINUX diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 2639d7981f..8c7b5b38e9 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1119,7 +1119,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash) if (os_get_file_info((char *)buf->b_ffname, &file_info_old) && os_get_file_info((char *)file_name, &file_info_new) && file_info_old.stat.st_gid != file_info_new.stat.st_gid - && os_fchown(fd, (uid_t)-1, file_info_old.stat.st_gid) != 0) { + && os_fchown(fd, -1, file_info_old.stat.st_gid) != 0) { os_setperm(file_name, (perm & 0707) | ((perm & 07) << 3)); } # ifdef HAVE_SELINUX |