aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2023-04-01 02:49:51 +0200
committerGitHub <noreply@github.com>2023-04-01 08:49:51 +0800
commitd5f6176e6dc4b4e12fc5061ca6e87f4af533e46a (patch)
treeed51aa26f2b10c950c9bf2d7d035450335d01b55 /src/nvim/spellfile.c
parent83bfd94d1df5eecb8e4069a227c7d24598636d63 (diff)
downloadrneovim-d5f6176e6dc4b4e12fc5061ca6e87f4af533e46a.tar.gz
rneovim-d5f6176e6dc4b4e12fc5061ca6e87f4af533e46a.tar.bz2
rneovim-d5f6176e6dc4b4e12fc5061ca6e87f4af533e46a.zip
refactor: add const and remove unnecessary casts (#22841)
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 8927b599d0..c68eee3526 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -608,7 +608,7 @@ slang_T *spell_load_file(char *fname, char *lang, slang_T *old_lp, bool silent)
semsg(_(e_notopen), fname);
} else if (p_verbose > 2) {
verbose_enter();
- smsg((char *)e_notopen, fname);
+ smsg(e_notopen, fname);
verbose_leave();
}
goto endFAIL;
@@ -4047,7 +4047,7 @@ static int tree_add_word(spellinfo_T *spin, const char_u *word, wordnode_T *root
node = *prev;
}
#ifdef SPELL_PRINTTREE
- smsg((char_u *)"Added \"%s\"", word);
+ smsg("Added \"%s\"", word);
spell_print_tree(root->wn_sibling);
#endif