summaryrefslogtreecommitdiff
path: root/src/clientserver.c
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-01-28 15:28:04 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-28 15:28:04 +0000
commit420fabcd4ffeaf79082a6e43db91e1d363f88f27 (patch)
tree89938a5800078e96cdf992aca87e1c79a2f255ac /src/clientserver.c
parentfb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e (diff)
downloadvim-git-420fabcd4ffeaf79082a6e43db91e1d363f88f27.tar.gz
patch 8.2.4241: some type casts are redundantv8.2.4241
Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
Diffstat (limited to 'src/clientserver.c')
-rw-r--r--src/clientserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clientserver.c b/src/clientserver.c
index 0f178d088..793570abd 100644
--- a/src/clientserver.c
+++ b/src/clientserver.c
@@ -34,7 +34,7 @@ server_to_input_buf(char_u *str)
// The last but one parameter of replace_termcodes() is TRUE so that the
// <lt> sequence is recognised - needed for a real backslash.
p_cpo = (char_u *)"Bk";
- str = replace_termcodes((char_u *)str, &ptr, REPTERM_DO_LT, NULL);
+ str = replace_termcodes(str, &ptr, REPTERM_DO_LT, NULL);
p_cpo = cpo_save;
if (*ptr != NUL) // trailing CTRL-V results in nothing
@@ -55,7 +55,7 @@ server_to_input_buf(char_u *str)
// buffer.
typebuf_was_filled = TRUE;
}
- vim_free((char_u *)ptr);
+ vim_free(ptr);
}
/*