summaryrefslogtreecommitdiff
path: root/src/message.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/message.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/message.c')
-rw-r--r--src/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/message.c b/src/message.c
index 31314d2c7..c13a94d14 100644
--- a/src/message.c
+++ b/src/message.c
@@ -164,7 +164,7 @@ msg_attr_keep(
#ifdef FEAT_JOB_CHANNEL
if (emsg_to_channel_log)
// Write message in the channel log.
- ch_log(NULL, "ERROR: %s", (char *)s);
+ ch_log(NULL, "ERROR: %s", s);
#endif
// Truncate the message if needed.
@@ -905,7 +905,7 @@ emsg_invreg(int name)
void
emsg_namelen(char *msg, char_u *name, int len)
{
- char_u *copy = vim_strnsave((char_u *)name, len);
+ char_u *copy = vim_strnsave(name, len);
semsg(msg, copy == NULL ? "NULL" : (char *)copy);
vim_free(copy);
@@ -3701,7 +3701,7 @@ give_warning2(char_u *message, char_u *a1, int hl)
{
// Very early in initialisation and already something wrong, just give
// the raw message so the user at least gets a hint.
- give_warning((char_u *)message, hl);
+ give_warning(message, hl);
}
else
{