patch 8.1.0779: argument for message functions is inconsistent
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index d044fdb..72d28c5 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -143,7 +143,7 @@
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 @@
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 @@
if (debug_backtrace_level < 0)
{
debug_backtrace_level = 0;
- MSG(_("frame is zero"));
+ msg(_("frame is zero"));
}
else
{
@@ -857,7 +857,7 @@
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 @@
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 @@
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 @@
vim_snprintf((char *)IObuff, IOSIZE,
_("W21: Required python version 3.x not supported, ignoring file: %s"),
fname);
- MSG(IObuff);
+ msg((char *)IObuff);
# endif
return;
}