aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/shada.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-06-23 23:49:23 +0300
committerZyX <kp-pav@yandex.ru>2016-06-24 00:07:56 +0300
commit75bd39d49c09896a885ac700862f9b3bb84f6069 (patch)
tree30d00f28771f2a5cdd243df02f70b1818122b0e0 /src/nvim/shada.c
parenta3b05a03b62b2c5be92a63ba3890b0359a335ba7 (diff)
downloadrneovim-75bd39d49c09896a885ac700862f9b3bb84f6069.tar.gz
rneovim-75bd39d49c09896a885ac700862f9b3bb84f6069.tar.bz2
rneovim-75bd39d49c09896a885ac700862f9b3bb84f6069.zip
*: Satisfy linter (newest type casts rule)
Diffstat (limited to 'src/nvim/shada.c')
-rw-r--r--src/nvim/shada.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c
index 5047ef9647..b5921eb810 100644
--- a/src/nvim/shada.c
+++ b/src/nvim/shada.c
@@ -3007,8 +3007,8 @@ shada_write_file_nomerge: {}
if (getuid() == ROOT_UID) {
if (old_info.stat.st_uid != ROOT_UID
|| old_info.stat.st_gid != getgid()) {
- const uv_uid_t old_uid = (uv_uid_t) old_info.stat.st_uid;
- const uv_gid_t old_gid = (uv_gid_t) old_info.stat.st_gid;
+ const uv_uid_t old_uid = (uv_uid_t)old_info.stat.st_uid;
+ const uv_gid_t old_gid = (uv_gid_t)old_info.stat.st_gid;
const int fchown_ret = os_fchown(file_fd(sd_writer.cookie),
old_uid, old_gid);
if (fchown_ret != 0) {
@@ -3192,7 +3192,7 @@ static ShaDaReadResult fread_len(ShaDaReadDef *const sd_reader,
emsgf(_(RCERR "Error while reading ShaDa file: "
"last entry specified that it occupies %" PRIu64 " bytes, "
"but file ended earlier"),
- (uint64_t) length);
+ (uint64_t)length);
return kSDReadStatusNotShaDa;
}
}