summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-19 17:43:09 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-19 17:43:09 +0100
commit32526b3c1846025f0e655f41efd4e5428da16b6c (patch)
treee9f3ea5e0daaada049e905b5f1b38b4a45511f3d /src/ex_cmds2.c
parentd383c92ec1d14ffd5c3802f0ffd763e91d547fa8 (diff)
patch 8.1.0779: argument for message functions is inconsistentv8.1.0779
Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index d044fdb2c0..72d28c52d1 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -143,7 +143,7 @@ do_debug(char_u *cmd)
debug_mode = TRUE;
if (!debug_did_msg)
- MSG(_("Entering Debug mode. Type \"cont\" to continue."));
+ msg(_("Entering Debug mode. Type \"cont\" to continue."));
if (debug_oldval != NULL)
{
smsg(_("Oldval = \"%s\""), debug_oldval);
@@ -157,7 +157,7 @@ do_debug(char_u *cmd)
debug_newval = NULL;
}
if (sourcing_name != NULL)
- msg(sourcing_name);
+ msg((char *)sourcing_name);
if (sourcing_lnum != 0)
smsg(_("line %ld: %s"), (long)sourcing_lnum, cmd);
else
@@ -390,7 +390,7 @@ do_checkbacktracelevel(void)
if (debug_backtrace_level < 0)
{
debug_backtrace_level = 0;
- MSG(_("frame is zero"));
+ msg(_("frame is zero"));
}
else
{
@@ -857,7 +857,7 @@ ex_breaklist(exarg_T *eap UNUSED)
int i;
if (dbg_breakp.ga_len == 0)
- MSG(_("No breakpoints defined"));
+ msg(_("No breakpoints defined"));
else
for (i = 0; i < dbg_breakp.ga_len; ++i)
{
@@ -2430,7 +2430,7 @@ buf_write_all(buf_T *buf, int forceit)
if (curbuf != old_curbuf)
{
msg_source(HL_ATTR(HLF_W));
- MSG(_("Warning: Entered other buffer unexpectedly (check autocommands)"));
+ msg(_("Warning: Entered other buffer unexpectedly (check autocommands)"));
}
return retval;
}
@@ -4112,7 +4112,7 @@ source_pyx_file(exarg_T *eap, char_u *fname)
vim_snprintf((char *)IObuff, IOSIZE,
_("W20: Required python version 2.x not supported, ignoring file: %s"),
fname);
- MSG(IObuff);
+ msg((char *)IObuff);
# endif
return;
}
@@ -4124,7 +4124,7 @@ source_pyx_file(exarg_T *eap, char_u *fname)
vim_snprintf((char *)IObuff, IOSIZE,
_("W21: Required python version 3.x not supported, ignoring file: %s"),
fname);
- MSG(IObuff);
+ msg((char *)IObuff);
# endif
return;
}