From 8f4ada5a2a5c1bfe546cf7d67d3531551ff6026c Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Sat, 16 Aug 2014 09:21:09 +0300 Subject: os_fchown: remove cast of parameter -1 to uid_t --- src/nvim/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/fileio.c') 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 -- cgit