aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 10:36:35 +0200
committerDundar Göc <gocdundar@gmail.com>2022-08-26 22:24:28 +0200
commit395277036014189c03b8969fc0a5cd2bdc5c8631 (patch)
tree27caaef2e0b8351eb5637d1a969229663ec2c4a8 /src/nvim/os
parent6a13b8fa5460da5aa22a1c366e5252c26ed5fe1e (diff)
downloadrneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.tar.gz
rneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.tar.bz2
rneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/env.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index 795bff66cb..d46d51882e 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -937,8 +937,8 @@ char *vim_getenv(const char *name)
// - the directory name from 'helpfile' (unless it contains '$')
// - the executable name from argv[0]
if (vim_path == NULL) {
- if (p_hf != NULL && vim_strchr((char *)p_hf, '$') == NULL) {
- vim_path = (char *)p_hf;
+ if (p_hf != NULL && vim_strchr(p_hf, '$') == NULL) {
+ vim_path = p_hf;
}
char exe_name[MAXPATHL];
@@ -957,7 +957,7 @@ char *vim_getenv(const char *name)
char *vim_path_end = path_tail(vim_path);
// remove "doc/" from 'helpfile', if present
- if (vim_path == (char *)p_hf) {
+ if (vim_path == p_hf) {
vim_path_end = remove_tail(vim_path, vim_path_end, "doc");
}