summaryrefslogtreecommitdiff
path: root/src/spell.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/spell.c
parentd383c92ec1d14ffd5c3802f0ffd763e91d547fa8 (diff)
downloadvim-git-32526b3c1846025f0e655f41efd4e5428da16b6c.tar.gz
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/spell.c')
-rw-r--r--src/spell.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/spell.c b/src/spell.c
index 9fd4fd684..8d0eddce0 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -3375,7 +3375,7 @@ spell_suggest(int count)
TRUE, need_cap, TRUE);
if (sug.su_ga.ga_len == 0)
- MSG(_("Sorry, no suggestions"));
+ msg(_("Sorry, no suggestions"));
else if (count > 0)
{
if (count > sug.su_ga.ga_len)
@@ -3409,7 +3409,7 @@ spell_suggest(int count)
sug.su_badlen, sug.su_badptr);
}
#endif
- msg_puts(IObuff);
+ msg_puts((char *)IObuff);
msg_clr_eos();
msg_putchar('\n');
@@ -3430,17 +3430,17 @@ spell_suggest(int count)
if (cmdmsg_rl)
rl_mirror(IObuff);
#endif
- msg_puts(IObuff);
+ msg_puts((char *)IObuff);
vim_snprintf((char *)IObuff, IOSIZE, " \"%s\"", wcopy);
- msg_puts(IObuff);
+ msg_puts((char *)IObuff);
/* The word may replace more than "su_badlen". */
if (sug.su_badlen < stp->st_orglen)
{
vim_snprintf((char *)IObuff, IOSIZE, _(" < \"%.*s\""),
stp->st_orglen, sug.su_badptr);
- msg_puts(IObuff);
+ msg_puts((char *)IObuff);
}
if (p_verbose > 0)
@@ -3459,7 +3459,7 @@ spell_suggest(int count)
rl_mirror(IObuff + 1);
#endif
msg_advance(30);
- msg_puts(IObuff);
+ msg_puts((char *)IObuff);
}
msg_putchar('\n');
}
@@ -8458,13 +8458,13 @@ ex_spellinfo(exarg_T *eap UNUSED)
for (lpi = 0; lpi < curwin->w_s->b_langp.ga_len && !got_int; ++lpi)
{
lp = LANGP_ENTRY(curwin->w_s->b_langp, lpi);
- msg_puts((char_u *)"file: ");
- msg_puts(lp->lp_slang->sl_fname);
+ msg_puts("file: ");
+ msg_puts((char *)lp->lp_slang->sl_fname);
msg_putchar('\n');
p = lp->lp_slang->sl_info;
if (p != NULL)
{
- msg_puts(p);
+ msg_puts((char *)p);
msg_putchar('\n');
}
}