aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-03 11:06:27 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-04 15:25:54 +0200
commit5576d30e89153c817fb1a8d23c30cfc0432bc7c6 (patch)
tree3a1457be276d95ffccbb760e79c708ab11b2cd54 /src/nvim/spellfile.c
parent3ec93ca92cb08faed342586e86a6f21b35264376 (diff)
downloadrneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.tar.gz
rneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.tar.bz2
rneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r--src/nvim/spellfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index f4e50778cf..c1b116e498 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -4874,7 +4874,7 @@ void ex_mkspell(exarg_T *eap)
{
int fcount;
char_u **fnames;
- char_u *arg = eap->arg;
+ char_u *arg = (char_u *)eap->arg;
bool ascii = false;
if (STRNCMP(arg, "-ascii", 6) == 0) {
@@ -5501,7 +5501,7 @@ static void spell_message(const spellinfo_T *spin, char_u *str)
// ":[count]spellrare {word}"
void ex_spell(exarg_T *eap)
{
- spell_add_word(eap->arg, (int)STRLEN(eap->arg),
+ spell_add_word((char_u *)eap->arg, (int)STRLEN(eap->arg),
eap->cmdidx == CMD_spellwrong ? SPELL_ADD_BAD :
eap->cmdidx == CMD_spellrare ? SPELL_ADD_RARE : SPELL_ADD_GOOD,
eap->forceit ? 0 : (int)eap->line2,